def OnInit(self): wx.InitAllImageHandlers() _theme() frame = dialogs.ImageInspectorFrame(None, size=dialogs.imageInspector.SIZE) images.set_icon(frame, 'inspector') frame.OpenImages(self.paths) frame.Show() self.SetTopWindow(frame) return 1
def show_frame(self): #do all application initialisation self.report = [] self.init() api.init() #create frame frame = Frame(self.filename, None, -1, CONTEXT['app_title']) frame.menu_tools.Check(frame.menu_tools_safe.GetId(), formField.get_safe()) frame.CentreOnScreen() frame.Show() self.SetTopWindow(frame) frame.enable_collapse_automatic(self.settings['collapse_automatic'])
def show_frame(self): #do all application initialisation self.init() api.init() #create frame frame = Frame(self.filename, None, -1, ct.TITLE) frame.menu_tools.Check(frame.menu_tools_safe.GetId(), formField.get_safe()) frame.CentreOnScreen() frame.Show() self.SetTopWindow(frame) frame.enable_collapse_automatic(self.settings['collapse_automatic']) #delete splash self.splash.Hide() self.splash.Destroy() del self.splash
def on_menu_tools_image_inspector(self, event): frame = dialogs.ImageInspectorFrame(self, size=(470, dialogs.get_max_height(510)), icon=images.get_icon('inspector')) frame.Show()