Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def update(self, *a):
for i in xrange(0, 3):
self.labels[i].set_label(describe_action(Action.AC_STICK, AxisAction, self.axes[i]))
def set_button_desc(self, i):
desc = describe_action(Action.AC_BUTTON, None, self.actions[i])
l = self.builder.get_object("lblDPAD%s" % (i,))
if l is None:
l = self.builder.get_object("btDPAD%s" % (i,)).get_children()[0]
l.set_markup(desc)
def set_button_desc(self, i):
desc = describe_action(Action.AC_BUTTON, None, self.actions[i])
print "SET", i, self.actions[i], desc
l = self.builder.get_object("lblTilt%s" % (i,))
if l is None:
l = self.builder.get_object("btTilt%s" % (i,)).get_children()[0]
l.set_markup(desc)
def update(self):
self.builder.get_object("lblPartPressed").set_label(describe_action(Action.AC_BUTTON, ButtonAction, self.half))
self.builder.get_object("lblFullPressed").set_label(describe_action(Action.AC_BUTTON, ButtonAction, self.full))
self.builder.get_object("lblAnalog").set_label(describe_action(Action.AC_BUTTON, AxisAction, self.analog))
def update(self):
self.builder.get_object("lblPartPressed").set_label(describe_action(Action.AC_BUTTON, ButtonAction, self.half))
self.builder.get_object("lblFullPressed").set_label(describe_action(Action.AC_BUTTON, ButtonAction, self.full))
self.builder.get_object("lblAnalog").set_label(describe_action(Action.AC_BUTTON, AxisAction, self.analog))
def set_button_desc(self, i):
desc = describe_action(Action.AC_BUTTON, None, self.actions[i])
l = self.builder.get_object("lblTilt%s" % (i,))
if l is None:
l = self.builder.get_object("btTilt%s" % (i,)).get_children()[0]
l.set_markup(desc)
def update(self, *a):
for i in xrange(0, 3):
self.labels[i].set_label(describe_action(Action.AC_STICK, AxisAction, self.axes[i]))
def update(self):
self.builder.get_object("lblPartPressed").set_label(describe_action(Action.AC_BUTTON, ButtonAction, self.half))
self.builder.get_object("lblFullPressed").set_label(describe_action(Action.AC_BUTTON, ButtonAction, self.full))