Vkeyboard
From JoyWM
The vkeyboard widget (virtual keyboard) is a simple on screen keyboard. User can type in some simple text for example an address for an internet stream or something like this. You must initialize the vkeyboard before your event loop:
# VIRTUAL KEYBOARD vk = joywm.vkeyboard(dummy)
In your event loop you need the following code:
# SHOW KEYBOARD
if key.keyname == 'a':
vk.show(dummy)
print vk.userinput
When you start this now and press 'A' the virtual keyboard appears:
Here's the complete code example:
dummy = joywm.new_app()
# VIRTUAL KEYBOARD
vk = joywm.vkeyboard(dummy)
# INPUT
device = 'any'
key = joywm.guiinput()
while 1:
key.getkey()
# SHOW KEYBOARD
if key.keyname == 'a':
vk.show(dummy)
print vk.userinput
# EXIT
if key.keyname == 'x':
break
key.delete()

