Beispiel #1
0
from kivy.app import App

from kivy.config import Config
# remove red dot on mouse2
Config.set('input', 'mouse', 'mouse,multitouch_on_demand')
Config.set('kivy', 'desktop', 1)
Config.set('graphics', 'resizable', 0)
Config.set('graphics', 'borderless', 0)
from kivy.uix.widget import Widget
from kivy.core.window import Window
from kivy.properties import OptionProperty
from kivy.uix.behaviors import focus

Window.on_keyboard(Window.maximize())

class Interface(Widget):
    Window.size = (450, 250)

    tab = OptionProperty("normal", options=["normal", "down"])
    q = OptionProperty("normal", options=["normal", "down"])
    w = OptionProperty("normal", options=["normal", "down"])
    e = OptionProperty("normal", options=["normal", "down"])
    r = OptionProperty("normal", options=["normal", "down"])
    a = OptionProperty("normal", options=["normal", "down"])
    s = OptionProperty("normal", options=["normal", "down"])
    d = OptionProperty("normal", options=["normal", "down"])
    f = OptionProperty("normal", options=["normal", "down"])
    g = OptionProperty("normal", options=["normal", "down"])
    shift = OptionProperty("normal", options=["normal", "down"])
    z = OptionProperty("normal", options=["normal", "down"])
    xx = OptionProperty("normal", options=["normal", "down"])