def __init__(self, lsysargv, sysargv): xfl.fl_flip_yorigin() xfl.fl_initialize(lsysargv, sysargv, "FormDemo", None, 0) self.create_form() xfl.fl_show_form(self.pform, xfl.FL_PLACE_CENTER | xfl.FL_FREE_SIZE, \ xfl.FL_TRANSIENT, "Select Object Demo") while True: pobj = xfl.fl_do_forms() if xfl.fl_is_same_object(pobj, self.preadyobj): break
def __init__(self, lsysargv, sysargv): xfl.fl_flip_yorigin() xfl.fl_initialize(lsysargv, sysargv, "FormDemo", None, 0) self.create_form() xfl.fl_add_select_items(self.psexobj,"Male") xfl.fl_add_select_items(self.psexobj,"Female") xfl.fl_add_select_items(self.pchildobj, "Zero|One|Two|Three|Four|Many") xfl.fl_add_select_items(self.plicenceobj, "Yes") xfl.fl_add_select_items(self.plicenceobj, "No") xfl.fl_add_select_items(self.pmarriedobj, "Yes") xfl.fl_add_select_items(self.pmarriedobj, "No") xfl.fl_show_form(self.pform, xfl.FL_PLACE_CENTER | xfl.FL_FREE_SIZE, \ xfl.FL_TRANSIENT, "Choice(Select)Demo") while xfl.fl_do_forms(): pass # empty xfl.fl_finish() sys.exit(0)