def __init__(self, lsysargv, sysargv): xfl.fl_initialize(lsysargv, sysargv, "FormDemo", None, 0) self.fd_ttt = self.create_form_ttt() xfl.fl_show_form(self.fd_ttt.ttt, xfl.FL_PLACE_CENTER, \ xfl.FL_TRANSIENT, "PixmapBrowser") xfl.fl_set_fselector_placement(xfl.FL_PLACE_FREE) xfl.fl_set_fselector_callback(self.load_file, 0) xfl.fl_show_fselector("Load a Pixmap file", "", "*.x?m", "") xfl.fl_do_forms()
def reloadfile(self, pobj, q): xfl.fl_set_fselector_placement(xfl.FL_PLACE_MOUSE) xfl.fl_set_fselector_callback(self.load_file, 0) xfl.fl_show_fselector("Load a Pix/bitMap file", "", "", "")