def create_form_mainform(self):
     fdui = FD_mainform()
     fdui.mainform = xfl.fl_bgn_form(xfl.FL_NO_BOX, 461, 291)
     pobj = xfl.fl_add_box(xfl.FL_UP_BOX, 0, 0, 461, 291, "")
     fdui.done = xfl.fl_add_button(xfl.FL_NORMAL_BUTTON, 381, 250, 64, 25, "Done")
     xfl.fl_set_object_lalign(fdui.done, xfl.FL_ALIGN_CENTER)
     xfl.fl_set_object_callback(fdui.done, self.done_cb, 0)
     fdui.hide = xfl.fl_add_button(xfl.FL_NORMAL_BUTTON, 15, 249, 64, 27, "Hide")
     xfl.fl_set_button_shortcut(fdui.hide, "^H", 1)
     xfl.fl_set_object_lalign(fdui.hide, xfl.FL_ALIGN_CENTER)
     xfl.fl_set_object_callback(fdui.hide, self.hide_show_cb, 0)
     fdui.show = xfl.fl_add_button(xfl.FL_NORMAL_BUTTON, 79, 249, 64, 27, "Show")
     xfl.fl_set_button_shortcut(fdui.show, "^S", 1)
     xfl.fl_set_object_lalign(fdui.show, xfl.FL_ALIGN_CENTER)
     xfl.fl_set_object_callback(fdui.show, self.hide_show_cb, 1)
     fdui.reshow = xfl.fl_add_button(xfl.FL_NORMAL_BUTTON, 155, 249, 64, 27, "ReShow")
     xfl.fl_set_button_shortcut(fdui.reshow, "^R", 1)
     xfl.fl_set_object_lalign(fdui.reshow, xfl.FL_ALIGN_CENTER)
     xfl.fl_set_object_callback(fdui.reshow, self.reshow_cb, 0)
     fdui.folder = xfl.fl_add_tabfolder(xfl.FL_TOP_TABFOLDER, 15, 11, 435, 230, "")
     xfl.fl_set_object_resize(fdui.folder, xfl.FL_RESIZE_ALL)
     fdui.set = xfl.fl_add_button(xfl.FL_NORMAL_BUTTON, 232, 249, 64, 27, "Set")
     xfl.fl_set_object_lalign(fdui.set, xfl.FL_ALIGN_CENTER)
     xfl.fl_set_object_callback(fdui.set, self.set_cb, 0)
     fdui.deactivate = xfl.fl_add_button(xfl.FL_NORMAL_BUTTON, 296, 249, 69, 27, "Deactivate")
     xfl.fl_set_object_lalign(fdui.deactivate, xfl.FL_ALIGN_CENTER)
     xfl.fl_set_object_callback(fdui.deactivate, self.deactivate_cb, 0)
     xfl.fl_end_form()
     return fdui
    def create_forms(self):

        self.sample = xfl.fl_bgn_form(xfl.FL_NO_BOX, 320, 250)

        self.ptrflobj0 = xfl.fl_add_box(xfl.FL_UP_BOX, 0, 0, 320, 250, '')
        xfl.fl_set_object_color(self.ptrflobj0, xfl.FL_COL1, xfl.FL_COL1)
        xfl.fl_set_object_lalign(self.ptrflobj0, xfl.FL_ALIGN_CENTER)
        xfl.fl_set_object_lstyle(self.ptrflobj0, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.ptrflobj0, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.ptrflobj0, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.ptrflobj0, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.ptrflobj0, xfl.FL_NoGravity, xfl.FL_NoGravity)
        self.ptabfolder = xfl.fl_add_tabfolder(xfl.FL_BOTTOM_TABFOLDER, 50, 50, 240, 140, 'My Tabfolder')
        xfl.fl_set_object_boxtype(self.ptabfolder, xfl.FL_SHADOW_BOX)
        xfl.fl_set_object_color(self.ptabfolder, xfl.FL_LEMONCHIFFON, xfl.FL_LIGHTGREY)
        xfl.fl_set_object_lalign(self.ptabfolder, xfl.FL_ALIGN_LEFT_BOTTOM)
        xfl.fl_set_object_lstyle(self.ptabfolder, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.ptabfolder, xfl.FL_TINY_SIZE)
        xfl.fl_set_object_lcol(self.ptabfolder, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.ptabfolder, xfl.FL_RESIZE_NONE)
        xfl.fl_set_object_gravity(self.ptabfolder, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.ptabfolder, 'T', 1)
        xfl.fl_set_object_callback(self.ptabfolder, self.tabfoldcb, 4)

        xfl.fl_end_form()