def input_callback(self, pobj, data): buf = "Input%ld returned" % data xfl.fl_set_object_label(self.ui.status, buf) xfl.fl_XFlush() xfl.fl_msleep(50)
def peek_event(self, form, xev): if xev.contents.type == xfl.KeyPress: xfl.fl_set_object_label(self.ui.status, "keyboard input") xfl.fl_XFlush() # necessary to show the label xfl.fl_msleep(50) return 0