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.myrndbutton = xfl.fl_add_roundbutton(xfl.FL_RETURN_BUTTON, 30, 30, 270, 120, 'rndbutton')
        xfl.fl_set_object_boxtype(self.myrndbutton, xfl.FL_NO_BOX)
        xfl.fl_set_button_mouse_buttons(self.myrndbutton, 23)
        xfl.fl_set_button(self.myrndbutton, 1)
        xfl.fl_set_object_color(self.myrndbutton, xfl.FL_MCOL, xfl.FL_YELLOW)
        xfl.fl_set_object_lalign(self.myrndbutton, xfl.FL_ALIGN_CENTER)
        xfl.fl_set_object_lstyle(self.myrndbutton, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.myrndbutton, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.myrndbutton, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.myrndbutton, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.myrndbutton, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.myrndbutton, 'd', 1)
        xfl.fl_set_object_callback(self.myrndbutton, self.buttoncb, 90)

        xfl.fl_end_form()
    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.pformbrwsr = xfl.fl_add_formbrowser(xfl.FL_NORMAL_FORMBROWSER, 40, 40, 250, 180, 'A normal formbrowser')
        xfl.fl_set_object_boxtype(self.pformbrwsr, xfl.FL_OVAL3D_DOWNBOX)
        xfl.fl_set_object_color(self.pformbrwsr, xfl.FL_COL1, xfl.FL_COL1)
        xfl.fl_set_object_lalign(self.pformbrwsr, xfl.FL_ALIGN_BOTTOM)
        xfl.fl_set_object_lstyle(self.pformbrwsr, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.pformbrwsr, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.pformbrwsr, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.pformbrwsr, xfl.FL_RESIZE_NONE)
        xfl.fl_set_object_gravity(self.pformbrwsr, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.pformbrwsr, 'n', 1)
        xfl.fl_set_object_callback(self.pformbrwsr, self.formbrwsr_cb, 99)

        xfl.fl_end_form()
    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.mynormalbutton = xfl.fl_add_button(xfl.FL_TOUCH_BUTTON, 60, 30, 170, 50, 'button')
        xfl.fl_set_object_boxtype(self.mynormalbutton, xfl.FL_UP_BOX)
        xfl.fl_set_button_mouse_buttons(self.mynormalbutton, 30)
        xfl.fl_set_object_color(self.mynormalbutton, xfl.FL_COL1, xfl.FL_COL1)
        xfl.fl_set_object_lalign(self.mynormalbutton, xfl.FL_ALIGN_CENTER)
        xfl.fl_set_object_lstyle(self.mynormalbutton, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.mynormalbutton, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.mynormalbutton, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.mynormalbutton, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.mynormalbutton, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.mynormalbutton, 'o', 1)
        xfl.fl_set_object_callback(self.mynormalbutton, self.buttoncb, 1001)
        xfl.fl_set_object_return(self.mynormalbutton, 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.ppixmap = xfl.fl_add_pixmap(xfl.FL_NORMAL_PIXMAP, 40, 40, 240, 90, 'one\ndemo\npixmap')
        xfl.fl_set_object_boxtype(self.ppixmap, xfl.FL_FRAME_BOX)
        xfl.fl_set_pixmap_align(self.ppixmap, xfl.FL_ALIGN_RIGHT|xfl.FL_ALIGN_INSIDE, 3, 3)
        xfl.fl_set_pixmap_file(self.ppixmap, 'crab45.xpm')
        xfl.fl_set_object_color(self.ppixmap, xfl.FL_COL1, xfl.FL_COL1)
        xfl.fl_set_object_lalign(self.ppixmap, xfl.FL_ALIGN_BOTTOM)
        xfl.fl_set_object_lstyle(self.ppixmap, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.ppixmap, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.ppixmap, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.ppixmap, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.ppixmap, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.ppixmap, 'm', 1)
        xfl.fl_set_object_callback(self.ppixmap, self.pmapcb, 0)

        xfl.fl_end_form()
    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.pbmbutton = xfl.fl_add_bitmapbutton(xfl.FL_NORMAL_BUTTON, 50, 40, 220, 90, 'xbmbutton')
        xfl.fl_set_object_boxtype(self.pbmbutton, xfl.FL_UP_BOX)
        xfl.fl_set_button_mouse_buttons(self.pbmbutton, 27)
        xfl.fl_set_bitmapbutton_file(self.pbmbutton, '././bm1.xbm')
        xfl.fl_set_object_color(self.pbmbutton, xfl.FL_COL1, xfl.FL_BLUE)
        xfl.fl_set_object_lalign(self.pbmbutton, xfl.FL_ALIGN_BOTTOM)
        xfl.fl_set_object_lstyle(self.pbmbutton, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.pbmbutton, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.pbmbutton, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.pbmbutton, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.pbmbutton, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.pbmbutton, 'm', 1)
        xfl.fl_set_object_callback(self.pbmbutton, self.buttoncb, 999)

        xfl.fl_end_form()
Ejemplo n.º 7
0
    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.pinput = xfl.fl_add_input(xfl.FL_SECRET_INPUT, 100, 60, 170, 30, 'MyInput')
        xfl.fl_set_object_boxtype(self.pinput, xfl.FL_DOWN_BOX)
        xfl.fl_set_object_color(self.pinput, xfl.FL_INDIANRED, xfl.FL_BISQUE)
        xfl.fl_set_object_lalign(self.pinput, xfl.FL_ALIGN_LEFT)
        xfl.fl_set_object_lstyle(self.pinput, 14)
        xfl.fl_set_object_lsize(self.pinput, xfl.FL_MEDIUM_SIZE)
        xfl.fl_set_object_lcol(self.pinput, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.pinput, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.pinput, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_callback(self.pinput, self.inputcb, 5)
        xfl.fl_set_object_return(self.pinput, xfl.FL_RETURN_END_CHANGED)

        xfl.fl_end_form()
Ejemplo n.º 8
0
    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.ptimer = xfl.fl_add_timer(xfl.FL_VALUE_TIMER, 120, 20, 150, 120, 'first\ntimer')
        xfl.fl_set_object_boxtype(self.ptimer, xfl.FL_UP_BOX)
        xfl.fl_set_object_color(self.ptimer, xfl.FL_TOP_BCOL, xfl.FL_RED)
        xfl.fl_set_object_lalign(self.ptimer, xfl.FL_ALIGN_CENTER)
        xfl.fl_set_object_lstyle(self.ptimer, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.ptimer, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.ptimer, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.ptimer, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.ptimer, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.ptimer, 'm', 1)
        xfl.fl_set_object_callback(self.ptimer, self.timercb, 3)

        xfl.fl_end_form()
    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()
    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.bitmapname = xfl.fl_add_bitmap(xfl.FL_NORMAL_BITMAP, 40, 30, 250, 100, 'bitmap')
        xfl.fl_set_object_boxtype(self.bitmapname, xfl.FL_NO_BOX)
        bm2_width = 16
        bm2_height = 16
        bm2_bits = [0, 0, 0, 87, 124, 114, 252, 82, 252, 0, 124, 1, 124, 31, 252, 34, 64, 66, 64, 68, 64, 67, 192, 64, 112, 64, 140, 32, 0, 31, 0, 0]
        xfl.fl_set_bitmap_data(self.bitmapname, bm2_width, bm2_height, bm2_bits)
        xfl.fl_set_object_color(self.bitmapname, xfl.FL_COL1, xfl.FL_COL1)
        xfl.fl_set_object_lalign(self.bitmapname, xfl.FL_ALIGN_BOTTOM)
        xfl.fl_set_object_lstyle(self.bitmapname, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.bitmapname, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.bitmapname, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.bitmapname, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.bitmapname, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.bitmapname, 'b', 1)
        xfl.fl_set_object_callback(self.bitmapname, self.bitmapcb, 2)

        xfl.fl_end_form()
    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.pbmbutton = xfl.fl_add_bitmapbutton(xfl.FL_NORMAL_BUTTON, 50, 40, 220, 90, 'xbmbutton')
        xfl.fl_set_object_boxtype(self.pbmbutton, xfl.FL_UP_BOX)
        xfl.fl_set_button_mouse_buttons(self.pbmbutton, 27)
        bm1_width = 16
        bm1_height = 16
        bm1_bits = [0, 0, 0, 87, 124, 114, 196, 82, 196, 0, 68, 1, 68, 31, 252, 34, 64, 66, 64, 68, 64, 67, 192, 64, 112, 64, 140, 32, 0, 31, 0, 0]
        xfl.fl_set_bitmapbutton_data(self.pbmbutton, bm1_width, bm1_height, bm1_bits)
        xfl.fl_set_object_color(self.pbmbutton, xfl.FL_COL1, xfl.FL_BLUE)
        xfl.fl_set_object_lalign(self.pbmbutton, xfl.FL_ALIGN_BOTTOM)
        xfl.fl_set_object_lstyle(self.pbmbutton, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.pbmbutton, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.pbmbutton, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.pbmbutton, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.pbmbutton, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.pbmbutton, 'm', 1)
        xfl.fl_set_object_callback(self.pbmbutton, self.buttoncb, 999)

        xfl.fl_end_form()
    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.plightbtn = xfl.fl_add_lightbutton(xfl.FL_PUSH_BUTTON, 60, 30, 210, 90, 'brain-on mode')
        xfl.fl_set_object_boxtype(self.plightbtn, xfl.FL_UP_BOX)
        xfl.fl_set_button_mouse_buttons(self.plightbtn, 29)
        xfl.fl_set_button(self.plightbtn, 1)
        xfl.fl_set_object_color(self.plightbtn, xfl.FL_COL1, xfl.FL_YELLOW)
        xfl.fl_set_object_lalign(self.plightbtn, xfl.FL_ALIGN_CENTER)
        xfl.fl_set_object_lstyle(self.plightbtn, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.plightbtn, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.plightbtn, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.plightbtn, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.plightbtn, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.plightbtn, 'o', 1)
        xfl.fl_set_object_callback(self.plightbtn, self.buttoncb, 555)

        xfl.fl_end_form()
Ejemplo n.º 13
0
    def create_forms(self):

        self.sampleform = 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.ptext = xfl.fl_add_text(xfl.FL_NORMAL_TEXT, 40, 40, 240, 110, 'My name is text,\nspecial agent Text from the Earth')
        xfl.fl_set_object_boxtype(self.ptext, xfl.FL_DOWN_BOX)
        xfl.fl_set_object_color(self.ptext, xfl.FL_COL1, xfl.FL_MCOL)
        xfl.fl_set_object_lalign(self.ptext, xfl.FL_ALIGN_RIGHT_TOP|xfl.FL_ALIGN_INSIDE)
        xfl.fl_set_object_lstyle(self.ptext, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.ptext, 11)
        xfl.fl_set_object_lcol(self.ptext, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.ptext, xfl.FL_RESIZE_X)
        xfl.fl_set_object_gravity(self.ptext, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.ptext, 'T', 1)
        xfl.fl_set_object_callback(self.ptext, self.textcb, 0)

        xfl.fl_end_form()
    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()
    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.ppositn = xfl.fl_add_positioner(xfl.FL_OVERLAY_POSITIONER, 50, 50, 210, 140, "My anonymous positioner")
        xfl.fl_set_object_boxtype(self.ppositn, xfl.FL_NO_BOX)
        xfl.fl_set_positioner_xbounds(self.ppositn, 1, 75)
        xfl.fl_set_positioner_ybounds(self.ppositn, 2, 150)
        xfl.fl_set_positioner_xvalue(self.ppositn, 50)
        xfl.fl_set_positioner_yvalue(self.ppositn, 50)
        xfl.fl_set_positioner_xstep(self.ppositn, 1)
        xfl.fl_set_positioner_ystep(self.ppositn, 2)
        xfl.fl_set_object_color(self.ppositn, xfl.FL_COL1, xfl.FL_RED)
        xfl.fl_set_object_lalign(self.ppositn, xfl.FL_ALIGN_BOTTOM)
        xfl.fl_set_object_lstyle(self.ppositn, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.ppositn, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.ppositn, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.ppositn, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.ppositn, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.ppositn, "u", 1)
        xfl.fl_set_object_callback(self.ppositn, self.positncb, 0)
        xfl.fl_set_object_return(self.ppositn, xfl.FL_RETURN_END_CHANGED)

        xfl.fl_end_form()
    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.pscrollbar = xfl.fl_add_scrollbar(xfl.FL_HOR_PLAIN_SCROLLBAR, 40, 40, 250, 50, 'A common scrollbar')
        xfl.fl_set_object_boxtype(self.pscrollbar, xfl.FL_DOWN_BOX)
        xfl.fl_set_scrollbar_bounds(self.pscrollbar, 1, 5)
        xfl.fl_set_scrollbar_value(self.pscrollbar, 1)
        xfl.fl_set_scrollbar_increment(self.pscrollbar, 0.5, 0.05)
        xfl.fl_set_scrollbar_size(self.pscrollbar, 0.20)
        xfl.fl_set_scrollbar_step(self.pscrollbar, 1.000)
        xfl.fl_set_object_color(self.pscrollbar, xfl.FL_COL1, xfl.FL_COL1)
        xfl.fl_set_object_lalign(self.pscrollbar, xfl.FL_ALIGN_BOTTOM)
        xfl.fl_set_object_lstyle(self.pscrollbar, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.pscrollbar, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.pscrollbar, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.pscrollbar, xfl.FL_RESIZE_X)
        xfl.fl_set_object_gravity(self.pscrollbar, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.pscrollbar, 'r', 1)
        xfl.fl_set_object_callback(self.pscrollbar, self.scrollbarcb, 3)
        xfl.fl_set_object_return(self.pscrollbar, xfl.FL_RETURN_END_CHANGED)

        xfl.fl_end_form()
    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.pvalslider = xfl.fl_add_valslider(xfl.FL_HOR_SLIDER, 10, 40, 290, 30, 'Horizontal way')
        xfl.fl_set_object_boxtype(self.pvalslider, xfl.FL_UP_BOX)
        xfl.fl_set_slider_bounds(self.pvalslider, 1, 25)
        xfl.fl_set_slider_value(self.pvalslider, 1)
        xfl.fl_set_slider_increment(self.pvalslider, 0.4, 0.5)
        xfl.fl_set_slider_size(self.pvalslider, 0.20)
        xfl.fl_set_slider_step(self.pvalslider, 1)
        xfl.fl_set_slider_precision(self.pvalslider, 3)
        xfl.fl_set_object_color(self.pvalslider, xfl.FL_COL1, xfl.FL_COL1)
        xfl.fl_set_object_lalign(self.pvalslider, xfl.FL_ALIGN_BOTTOM)
        xfl.fl_set_object_lstyle(self.pvalslider, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.pvalslider, xfl.FL_TINY_SIZE)
        xfl.fl_set_object_lcol(self.pvalslider, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.pvalslider, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.pvalslider, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.pvalslider, 'H', 1)
        xfl.fl_set_object_callback(self.pvalslider, self.slidercb, 4)
        xfl.fl_set_object_return(self.pvalslider, xfl.FL_RETURN_CHANGED|xfl.FL_RETURN_END)

        xfl.fl_end_form()
Ejemplo n.º 18
0
    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.pdial = xfl.fl_add_dial(xfl.FL_LINE_DIAL, 40, 30, 240, 120, 'A line dial')
        xfl.fl_set_object_boxtype(self.pdial, xfl.FL_FLAT_BOX)
        xfl.fl_set_dial_bounds(self.pdial, 1, 128)
        xfl.fl_set_dial_value(self.pdial, 2.5)
        xfl.fl_set_dial_step(self.pdial, 1)
        xfl.fl_set_dial_angles(self.pdial, 45, 270)
        xfl.fl_set_dial_direction(self.pdial, xfl.FL_DIAL_CCW)
        xfl.fl_set_object_color(self.pdial, xfl.FL_COL1, xfl.FL_RIGHT_BCOL)
        xfl.fl_set_object_lalign(self.pdial, xfl.FL_ALIGN_BOTTOM)
        xfl.fl_set_object_lstyle(self.pdial, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.pdial, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.pdial, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.pdial, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.pdial, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.pdial, 'd', 1)
        xfl.fl_set_object_callback(self.pdial, self.dialcb, 7)
        xfl.fl_set_object_return(self.pdial, xfl.FL_RETURN_CHANGED)

        xfl.fl_end_form()
    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.pbrowser = xfl.fl_add_browser(xfl.FL_NORMAL_BROWSER, 20, 40, 280, 160, 'My Browser with\na lot of text')
        xfl.fl_set_object_boxtype(self.pbrowser, xfl.FL_DOWN_BOX)
        xfl.fl_set_browser_hscrollbar(self.pbrowser, xfl.FL_ON)
        xfl.fl_set_browser_vscrollbar(self.pbrowser, xfl.FL_ON)
        xfl.fl_set_object_color(self.pbrowser, xfl.FL_WHITE, xfl.FL_YELLOW)
        xfl.fl_set_object_lalign(self.pbrowser, xfl.FL_ALIGN_BOTTOM)
        xfl.fl_set_object_lstyle(self.pbrowser, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.pbrowser, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.pbrowser, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.pbrowser, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.pbrowser, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.pbrowser, 'l', 1)
        xfl.fl_set_object_callback(self.pbrowser, self.browsercb, 33)
        xfl.fl_set_object_return(self.pbrowser, xfl.FL_RETURN_END_CHANGED|xfl.FL_RETURN_SELECTION|xfl.FL_RETURN_DESELECTION)

        xfl.fl_end_form()
    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.plabelbtn = xfl.fl_add_labelbutton(xfl.FL_INOUT_BUTTON, 50, 50, 230, 100, 'anylabel\nyadda yadda')
        xfl.fl_set_object_boxtype(self.plabelbtn, xfl.FL_FLAT_BOX)
        xfl.fl_set_button_mouse_buttons(self.plabelbtn, 15)
        xfl.fl_set_object_color(self.plabelbtn, xfl.FL_RED, xfl.FL_BLUE)
        xfl.fl_set_object_lalign(self.plabelbtn, xfl.FL_ALIGN_CENTER)
        xfl.fl_set_object_lstyle(self.plabelbtn, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.plabelbtn, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.plabelbtn, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.plabelbtn, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.plabelbtn, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.plabelbtn, 'a', 1)
        xfl.fl_set_object_callback(self.plabelbtn, self.labelcb, 7)

        xfl.fl_end_form()
Ejemplo n.º 21
0
    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.pclock = xfl.fl_add_clock(xfl.FL_ANALOG_CLOCK, 50, 40, 230, 100, 'mygoodlabel')
        xfl.fl_set_object_boxtype(self.pclock, xfl.FL_UP_BOX)
        xfl.fl_set_object_color(self.pclock, xfl.FL_INACTIVE, xfl.FL_BOTTOM_BCOL)
        xfl.fl_set_object_lalign(self.pclock, xfl.FL_ALIGN_TOP)
        xfl.fl_set_object_lstyle(self.pclock, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.pclock, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.pclock, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.pclock, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.pclock, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.pclock, 'g', 1)
        xfl.fl_set_object_callback(self.pclock, self.clockcb, 88)

        xfl.fl_end_form()
Ejemplo n.º 22
0
    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.pcanvas = xfl.fl_add_canvas(xfl.FL_NORMAL_CANVAS, 60, 60, 210, 120, 'My canvas')
        xfl.fl_set_object_boxtype(self.pcanvas, xfl.FL_RFLAT_BOX)
        xfl.fl_set_object_color(self.pcanvas, xfl.FL_COL1, xfl.FL_BLACK)
        xfl.fl_set_object_lalign(self.pcanvas, xfl.FL_ALIGN_CENTER)
        xfl.fl_set_object_lstyle(self.pcanvas, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.pcanvas, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.pcanvas, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.pcanvas, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.pcanvas, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.pcanvas, 'c', 1)
        xfl.fl_set_object_callback(self.pcanvas, self.canvascb, 4)

        xfl.fl_end_form()
Ejemplo n.º 23
0
 def create_form_timerform(self):
     fdui = FD_timerform()
     fdui.timerform = xfl.fl_bgn_form(xfl.FL_NO_BOX, 290, 210)
     xfl.fl_add_box(xfl.FL_UP_BOX, 0, 0, 290, 210, "")
     xfl.fl_add_frame(xfl.FL_UP_FRAME, 0, 0, 290, 94, "")
     xfl.fl_add_frame(xfl.FL_UP_FRAME, 0, 100, 330, 190, "")
     xfl.fl_add_button(xfl.FL_NORMAL_BUTTON, 100, 170, 80, 30, "Done")
     fdui.timer = xfl.fl_add_timer(xfl.FL_VALUE_TIMER, 20, 30, 180, 40, "Timer")
     xfl.fl_set_object_boxtype(fdui.timer, xfl.FL_UP_BOX)
     xfl.fl_set_object_lsize(fdui.timer, xfl.FL_MEDIUM_SIZE)
     xfl.fl_set_object_lalign(fdui.timer, xfl.FL_ALIGN_TOP)
     xfl.fl_set_object_lstyle(fdui.timer, xfl.FL_TIMES_STYLE)
     xfl.fl_set_object_callback(fdui.timer, self.expired, 0)
     pobj = xfl.fl_add_button(xfl.FL_NORMAL_BUTTON, 20, 120, 80, 30, "Suspend")
     xfl.fl_set_object_callback(pobj, self.suspend_resume, 0)
     pobj = xfl.fl_add_button(xfl.FL_NORMAL_BUTTON, 100, 120, 80, 30, "Resume")
     xfl.fl_set_object_callback(pobj, self.suspend_resume, 1)
     pobj = xfl.fl_add_button(xfl.FL_NORMAL_BUTTON, 180, 120, 80, 30, "Reset")
     xfl.fl_set_object_callback(pobj, self.reset, 0)
     fdui.down = xfl.fl_add_checkbutton(xfl.FL_RADIO_BUTTON, 210, 20, 70, 30, "Down")
     xfl.fl_set_object_shortcut(fdui.down, "D#D", 1)
     xfl.fl_set_object_callback(fdui.down, self.timer_direction, 0)
     fdui.down = xfl.fl_add_checkbutton(xfl.FL_RADIO_BUTTON, 210, 50, 70, 30, "Up")
     xfl.fl_set_object_shortcut(fdui.down, "U#U", 1)
     xfl.fl_set_object_callback(fdui.down, self.timer_direction, 1)
     xfl.fl_end_form()
     return fdui
Ejemplo n.º 24
0
    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.pxyplot = xfl.fl_add_xyplot(xfl.FL_SQUARE_XYPLOT, 30, 40, 260, 160, 'myxyplot')
        xfl.fl_set_object_boxtype(self.pxyplot, xfl.FL_FLAT_BOX)
        xfl.fl_set_xyplot_xgrid(self.pxyplot, xfl.FL_GRID_MAJOR)
        xfl.fl_set_xyplot_ygrid(self.pxyplot, xfl.FL_GRID_MAJOR)
        xfl.fl_set_xyplot_grid_linestyle(self.pxyplot, xfl.FL_DOTDASH)
        xfl.fl_set_object_color(self.pxyplot, xfl.FL_COL1, xfl.FL_BLACK)
        xfl.fl_set_object_lalign(self.pxyplot, xfl.FL_ALIGN_BOTTOM)
        xfl.fl_set_object_lstyle(self.pxyplot, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.pxyplot, xfl.FL_TINY_SIZE)
        xfl.fl_set_object_lcol(self.pxyplot, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.pxyplot, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.pxyplot, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.pxyplot, 'x', 1)
        xfl.fl_set_object_callback(self.pxyplot, self.xyplot_cb, 2)

        xfl.fl_end_form()
    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.pcounter = xfl.fl_add_counter(xfl.FL_NORMAL_COUNTER, 30, 50, 260, 70, 'My counter')
        xfl.fl_set_object_boxtype(self.pcounter, xfl.FL_FLAT_BOX)
        xfl.fl_set_counter_bounds(self.pcounter, -1000.0000, 1000.0000)
        xfl.fl_set_counter_value(self.pcounter, 100.0000)
        xfl.fl_set_object_color(self.pcounter, xfl.FL_WHEAT, xfl.FL_DARKGOLDENROD)
        xfl.fl_set_object_lalign(self.pcounter, xfl.FL_ALIGN_BOTTOM)
        xfl.fl_set_object_lstyle(self.pcounter, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.pcounter, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.pcounter, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.pcounter, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.pcounter, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.pcounter, 'M', 1)
        xfl.fl_set_object_callback(self.pcounter, self.countercb, 6)
        xfl.fl_set_object_return(self.pcounter, xfl.FL_RETURN_END_CHANGED)

        xfl.fl_end_form()
 def create_form_form0(self):
     fdui = FD_form0()
     fdui.form0 = xfl.fl_bgn_form(xfl.FL_NO_BOX, 320, 250)
     xfl.fl_add_box(xfl.FL_UP_BOX, 0, 0, 320, 250, "")
     xfl.fl_add_frame(xfl.FL_ENGRAVED_FRAME, 200, 70, 95, 100, "")
     fdui.butt = xfl.fl_add_button(xfl.FL_NORMAL_BUTTON, 20, 70, \
             170, 100, "A Button")
     fdui.enter = xfl.fl_add_checkbutton(xfl.FL_PUSH_BUTTON, 210, 70, \
             45, 30, "Enter")
     fdui.leave = xfl.fl_add_checkbutton(xfl.FL_PUSH_BUTTON, 210, 95, \
             40, 30, "Leave")
     fdui.push = xfl.fl_add_checkbutton(xfl.FL_PUSH_BUTTON, 210, 120, \
             50, 30, "Push")
     fdui.release = xfl.fl_add_checkbutton(xfl.FL_PUSH_BUTTON, 210, 140, \
             60, 30, "Release")
     pobj = xfl.fl_add_text(xfl.FL_NORMAL_TEXT, 55, 15, 220, 30, \
             "Pre-emptive Handler")
     xfl.fl_set_object_lsize(pobj, xfl.FL_MEDIUM_SIZE)
     xfl.fl_set_object_lalign(pobj, xfl.FL_ALIGN_CENTER)
     xfl.fl_set_object_lstyle(pobj, xfl.FL_BOLD_STYLE)
     fdui.peek = xfl.fl_add_checkbutton(xfl.FL_RADIO_BUTTON, 150, 40, \
             35, 30, "Peek")
     xfl.fl_set_object_color(fdui.peek, xfl.FL_COL1, xfl.FL_BLUE)
     fdui.override = xfl.fl_add_checkbutton(xfl.FL_RADIO_BUTTON, \
             210, 40, 35, 30, "Override")
     xfl.fl_set_object_color(fdui.override, xfl.FL_COL1, xfl.FL_BLUE)
     fdui.event = xfl.fl_add_box(xfl.FL_FLAT_BOX, 40, 180, 245, 25, "")
     fdui.done = xfl.fl_add_button(xfl.FL_NORMAL_BUTTON, 170, 210, \
             100, 30, "Done")
     xfl.fl_end_form()
     return fdui
Ejemplo n.º 27
0
    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.bitmapname = xfl.fl_add_bitmap(xfl.FL_NORMAL_BITMAP, 40, 30, 250, 100, 'bitmap')
        xfl.fl_set_object_boxtype(self.bitmapname, xfl.FL_NO_BOX)
        xfl.fl_set_bitmap_file(self.bitmapname, './bm2.xbm')
        xfl.fl_set_object_color(self.bitmapname, xfl.FL_COL1, xfl.FL_COL1)
        xfl.fl_set_object_lalign(self.bitmapname, xfl.FL_ALIGN_BOTTOM)
        xfl.fl_set_object_lstyle(self.bitmapname, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.bitmapname, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.bitmapname, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.bitmapname, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.bitmapname, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.bitmapname, 'b', 1)
        xfl.fl_set_object_callback(self.bitmapname, self.bitmapcb, 2)

        xfl.fl_end_form()
    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_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.my3drnd = xfl.fl_add_round3dbutton(xfl.FL_PUSH_BUTTON, 40, 30, 240, 70, 'My name is round3dbutton')
        xfl.fl_set_object_boxtype(self.my3drnd, xfl.FL_BORDER_BOX)
        xfl.fl_set_button_mouse_buttons(self.my3drnd, 30)
        xfl.fl_set_button(self.my3drnd, 1)
        xfl.fl_set_object_color(self.my3drnd, xfl.FL_COL1, xfl.FL_BLACK)
        xfl.fl_set_object_lalign(self.my3drnd, xfl.FL_ALIGN_CENTER)
        xfl.fl_set_object_lstyle(self.my3drnd, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.my3drnd, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.my3drnd, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.my3drnd, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.my3drnd, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.my3drnd, '3', 1)
        xfl.fl_set_object_callback(self.my3drnd, self.round3dcb, 22)

        xfl.fl_end_form()
Ejemplo n.º 30
0
    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.pchart = xfl.fl_add_chart(xfl.FL_PIE_CHART, 50, 30, 230, 110, 'mialabel')
        xfl.fl_set_object_boxtype(self.pchart, xfl.FL_BORDER_BOX)
        xfl.fl_set_object_color(self.pchart, xfl.FL_COL1, xfl.FL_COL1)
        xfl.fl_set_object_lalign(self.pchart, xfl.FL_ALIGN_BOTTOM)
        xfl.fl_set_object_lstyle(self.pchart, xfl.FL_NORMAL_STYLE)
        xfl.fl_set_object_lsize(self.pchart, xfl.FL_DEFAULT_SIZE)
        xfl.fl_set_object_lcol(self.pchart, xfl.FL_BLACK)
        xfl.fl_set_object_resize(self.pchart, xfl.FL_RESIZE_ALL)
        xfl.fl_set_object_gravity(self.pchart, xfl.FL_NoGravity, xfl.FL_NoGravity)
        xfl.fl_set_object_shortcut(self.pchart, 'l', 1)
        xfl.fl_set_object_callback(self.pchart, self.chartcb, 2)

        xfl.fl_end_form()