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.ppxmbutton = xfl.fl_add_pixmapbutton(xfl.FL_TOUCH_BUTTON, 40, 50, 230, 90, "mypixmapbtn")
        xfl.fl_set_object_boxtype(self.ppxmbutton, xfl.FL_ROUNDED_BOX)
        xfl.fl_set_button_mouse_buttons(self.ppxmbutton, 29)
        xfl.fl_set_pixmapbutton_align(self.ppxmbutton, xfl.FL_ALIGN_TOP | xfl.FL_ALIGN_INSIDE, 3, 3)
        xfl.fl_set_object_helper(self.ppxmbutton, "my image")
        xfl.fl_set_pixmapbutton_file(self.ppxmbutton, "./crab45.xpm")
        xfl.fl_set_object_color(self.ppxmbutton, xfl.FL_COL1, xfl.FL_COL1)
        xfl.fl_set_object_lalign(self.ppxmbutton, xfl.FL_ALIGN_BOTTOM)
        xfl.fl_set_object_lstyle(self.ppxmbutton, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.ppxmbutton, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.ppxmbutton, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.ppxmbutton, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.ppxmbutton, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.ppxmbutton, "b", 1)
        xfl.fl_set_object_callback(self.ppxmbutton, self.buttoncb, 5)
        xfl.fl_set_object_return(self.ppxmbutton, xfl.FL_RETURN_CHANGED)

        xfl.fl_end_form()
    def create_form_x(self):

        fdui = FD_x()
        fdui.x = xfl.fl_bgn_form(xfl.FL_FLAT_BOX, 170, 176)
        pobj = xfl.fl_add_text(xfl.FL_NORMAL_TEXT, 20, 10, 150, 50, \
                "Click on the digits...\n(left or right button)")
        xfl.fl_set_object_lsize(pobj, xfl.FL_NORMAL_SIZE)

        fdui.c = xfl.fl_add_button(xfl.FL_TOUCH_BUTTON, 40, 65, 90, 40, "012345")
        xfl.fl_set_object_boxtype(fdui.c, xfl.FL_EMBOSSED_BOX );
        xfl.fl_set_object_color(fdui.c, xfl.FL_YELLOW, xfl.FL_YELLOW );
        xfl.fl_set_object_lstyle(fdui.c, \
                xfl.FL_FIXED_STYLE | xfl.FL_EMBOSSED_STYLE)
        xfl.fl_set_object_lsize(fdui.c, xfl.FL_LARGE_SIZE );
        xfl.fl_set_object_callback(fdui.c, self.ccb, 0)
        xfl.fl_set_button_mouse_buttons(fdui.c, 1 | 4 | 8 | 16)
        xfl.fl_set_object_helper(fdui.c, \
                "May not look like a button but it's one...\n" \
                "(Also try the scroll wheel if you have.)" )

        pobj = xfl.fl_add_button(xfl.FL_RETURN_BUTTON, 50, 130, 70, 30, "Exit" );
        xfl.fl_set_button_mouse_buttons(pobj, 1)

        xfl.fl_end_form()
        xfl.fl_adjust_form_size(fdui.x)
        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.ppxmbutton = xfl.fl_add_pixmapbutton(xfl.FL_PUSH_BUTTON, 40, 50, 230, 90, 'mypixmapbtn')
        xfl.fl_set_object_boxtype(self.ppxmbutton, xfl.FL_OVAL3D_DOWNBOX)
        xfl.fl_set_button_mouse_buttons(self.ppxmbutton, 29)
        xfl.fl_set_pixmapbutton_align(self.ppxmbutton, xfl.FL_ALIGN_TOP|xfl.FL_ALIGN_INSIDE, 3, 3)
        xfl.fl_set_object_helper(self.ppxmbutton, 'a crab image')
        crab45 = ['28 28 6 2 ', '. c None      s s_SkyBlue ', 'x c orange      s s_orange ', '* c #ff72c2      s s_#ff72c2 ', '+ c SteelBlue      s s_SteelBlue ', 'G c black      s s_black ', 'a c LightGrey      s s_LightGrey ', '. . . . . . . . . . * * * * * * * . . . . . . . . . . . ', '. . . . . . . . * x x x x x x x * . . . . . . . . . . . ', '. . . . . . . * * * * * * * x x * . . . . . . . . . . . ', '. . . . . . . . . . . . . * x x x * . . . . . . . . . . ', '. . . . . . . . . . * x x x x * x x . . . . . . . . . . ', '. . . . . . . . + + * * * * * * * x x . . . . . . . . . ', '. . . . . . . . . . . . . . . . . * x x . . . . . * . . ', '. . * . . . . . . . . . . . . . . . * x . . * * x x . . ', '. * * . . + . . . . . . + + x x + * * x * * x x x + . . ', '. x * . . + . . . . . . . . + x + * x x x x x + + . . . ', '* x * . * * . . . . . . + . + x * * x x x * * . . . . . ', '* x * . x * . . . . . + x + + x x x x x x * * . . * * * ', '* x * . x * . . + . + x x x x x x x x x x * * * * x x x ', '* x * * x * . . + . . + x x x x x x x x x * * x x x G G ', '* x x x x * . . x + + + x x x x x x x x x x x * * G G . ', '* x x x * * . . x x x x x x x x x x x x x x x * * G G . ', '* * * x . * . . + + * x x x x x x x x x x x x * * G G . ', '. . . * . x * . * * * x x x x x x x x x x x x x * * * * ', '. . . . . x x * * x x x x x x x x x x x x x x * x x x x ', '. . . . . . x x x x x x x x x x x x x x x x * * G G G x ', '. . . . . . . . * x x x x x x x x x x x x x * * G G + . ', '. . . . . . . . * x * * * * x x x x x x x * * * G G . . ', '. . . . . . . * x x * * * * x x x x x * * * * * * G G . ', '. . . . . . . * x + . . * x * * * x * * * * * G G G G . ', '. . . . . . . x x + . . * x * * * * x G G G * G G G . . ', '. . . . . . * x + . . * x x G G G * x G G G G G . . . . ', '. . . . . . . . . . . * x G G G G * x G + . G G . . . . ', '. . . . . . . . . . . * x G . . . * x x . . . . . . . . ']
        xfl.fl_set_pixmapbutton_data(self.ppxmbutton, crab45)
        xfl.fl_set_object_color(self.ppxmbutton, xfl.FL_COL1, xfl.FL_COL1)
        xfl.fl_set_object_lalign(self.ppxmbutton, xfl.FL_ALIGN_BOTTOM)
        xfl.fl_set_object_lstyle(self.ppxmbutton, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.ppxmbutton, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.ppxmbutton, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.ppxmbutton, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.ppxmbutton, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.ppxmbutton, 'b', 1)
        xfl.fl_set_object_callback(self.ppxmbutton, self.buttoncb, 5)

        xfl.fl_end_form()