def show_about_box(self, event): if self.about_box is None: import about self.about_box = about.wxGladeAboutBox(None) self.about_box.ShowModal()
#self._skip_activate = False ## if frame_tool_win: ## def on_iconize(event): ## if event.Iconized(): ## self.hide_all() ## else: ## self.show_and_raise() ## event.Skip() ## wx.EVT_ICONIZE(self, on_iconize) if wx.Platform == '__WXMSW__': import about # I'll pay a beer to anyone who can explain to me why this prevents # a segfault on Win32 when you exit without doing anything!! self.about_box = about.wxGladeAboutBox(self.GetParent()) else: self.about_box = None # last visited directory, used on GTK for wxFileDialog self.cur_dir = config.preferences.open_save_path # set a drop target for us... self._droptarget = clipboard.FileDropTarget(self) self.SetDropTarget(self._droptarget) #self.tree_frame.SetDropTarget(self._droptarget) #self.frame2.SetDropTarget(self._droptarget) # ALB 2004-10-15, autosave support... self.autosave_timer = None if config.preferences.autosave:
def show_about_box(self): "show the about dialog; @see: L{about.wxGladeAboutBox}" about_box = about.wxGladeAboutBox() about_box.ShowModal() about_box.Destroy()