Raspberry Pi:使用Kivy的TextInput()时出错:[CRITICAL] [Clipboard]无法找到任何有价值的剪贴板提供程序

时间:2015-07-24 19:21:39

标签: python kivy

我使用kivy在python中编写了一个dmx控制程序。 我试图将它复制到一个覆盆子pi 2版本b(其上安装了raspberian,python和kivy,如kivy手册中所述 - >在树莓派上手动安装。)

当当前加载的窗口小部件上显示TextInput()时,一切正常,我只会收到错误。我收到了这些错误:

Error

在运行Windows 7 x64的计算机上,一切都很顺利。

以下我试图解决问题:

  • 我将所有“TextInput”更改为“Label”小部件,一切正常。所以它必须是TextInput
  • 我连接了覆盆子pi上的USB键盘来检查,如果错误与丢失的键输入设备有关 - 没有键盘的oder没有变化。

以下是kivy config.ini文件的内容:

[kivy]
keyboard_repeat_delay = 300
keyboard_repeat_rate = 30
log_dir = logs
log_enable = 1
log_level = info
log_name = kivy_%y-%m-%d_%_.txt
window_icon =
keyboard_mode =
keyboard_layout = qwerty
desktop = 1
exit_on_escape = 0
pause_on_minimize = 0
config_version = 14

[graphics]
display = -1
fullscreen = 0
height = 600
left = 0
maxfps = 60
multisamples = 2
position = auto
rotation = 0
show_cursor = 1
top = 0
width = 800
resizable = 1
borderless = 0
window_state = visible
minimum_width = 0
minimum_height = 0

[input]
mouse = mouse
%(name)s = probesysfs,provider=hidinput,param=invert_y=0

[postproc]
double_tap_distance = 20
double_tap_time = 250
ignore = []
jitter_distance = 0
jitter_ignore_devices = mouse,mactouch,
retain_distance = 50
retain_time = 0
triple_tap_distance = 20
triple_tap_time = 375

[widgets]
scroll_timeout = 250
scroll_distance = 20
scroll_friction = 1.
scroll_stoptime = 300
scroll_moves = 5

[modules]

1 个答案:

答案 0 :(得分:0)

这解决了我:

sudo apt-get install xclip xsel