X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d211a853c520116600acfb562dcb8a6b184de993..7f3450784cc9c696f269ff1bfde3623c180d4b58:/wxPython/demo/Main.py diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index f6dc3d2ba4..fa46693622 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -48,15 +48,28 @@ _treeList = [ # new stuff ('Recent Additions/Updates', [ 'AnalogClock', + 'AUI_DockingWindowMgr', + 'AUI_Notebook', 'CheckListCtrlMixin', + 'ComboTreeBox', + 'Pickers', + 'PseudoDC', 'RichTextCtrl', 'Treebook', 'Toolbook', - 'Pickers', + 'BitmapFromBuffer', + 'RawBitmapAccess', + 'DragScroller', +## 'AlphaDrawing', + 'DelayedResult', + 'ExpandoTextCtrl', + 'ButtonPanel', + 'FlatNotebook', ]), # managed windows == things with a (optional) caption you can close ('Frames and Dialogs', [ + 'AUI_DockingWindowMgr', 'Dialog', 'Frame', 'MDIWindows', @@ -125,6 +138,7 @@ _treeList = [ ]), ('"Book" Controls', [ + 'AUI_Notebook', 'Choicebook', 'Listbook', 'Notebook', @@ -134,8 +148,11 @@ _treeList = [ ('Custom Controls', [ 'AnalogClock', + 'ButtonPanel', 'ColourSelect', + 'ComboTreeBox', 'Editor', + 'FlatNotebook', 'GenericButtons', 'GenericDirCtrl', 'LEDNumberCtrl', @@ -158,6 +175,7 @@ _treeList = [ 'DatePickerCtrl', 'DynamicSashWindow', 'EditableListBox', + 'ExpandoTextCtrl', 'FancyText', 'FileBrowseButton', 'FloatBar', @@ -204,6 +222,7 @@ _treeList = [ # ditto ('Process and Events', [ + 'DelayedResult', 'EventManager', 'KeyEvents', 'Process', @@ -222,7 +241,9 @@ _treeList = [ # Images ('Using Images', [ +## 'AlphaDrawing', 'ArtProvider', + 'BitmapFromBuffer', 'Cursor', 'DragImage', 'GIFAnimationCtrl', @@ -230,13 +251,16 @@ _treeList = [ 'ImageAlpha', 'ImageFromStream', 'Mask', + 'RawBitmapAccess', 'Throbber', ]), # Other stuff ('Miscellaneous', [ +## 'AlphaDrawing', 'ColourDB', ##'DialogUnits', # needs more explanations + 'DragScroller', 'DrawXXXList', 'FileHistory', 'FontEnumerator', @@ -246,6 +270,7 @@ _treeList = [ 'MouseGestures', 'OGL', 'PrintFramework', + 'PseudoDC', 'ShapedWindow', 'Sound', 'StandardPaths', @@ -1126,8 +1151,11 @@ class wxPythonDemo(wx.Frame): icon = images.getWXPdemoIcon() self.SetIcon(icon) - self.tbicon = DemoTaskBarIcon(self) - + try: + self.tbicon = DemoTaskBarIcon(self) + except: + self.tbicon = None + wx.CallAfter(self.ShowTip) self.otherWin = None @@ -1175,22 +1203,6 @@ class wxPythonDemo(wx.Frame): menu.AppendMenu(wx.NewId(), item[0], submenu) self.mainmenu.Append(menu, '&Demo') - # Make a Demo Code menu - #TODO: Add new menu items - # Like the option-enabled entries to select the - # active module - #TODO: should we bother? - - #menu = wx.Menu() - #saveID = wx.NewId() - #restoreID = wx.NewId() - # - #menu.Append(saveID, '&Save\tCtrl-S', 'Save edited demo') - #menu.Append(restoreID, '&Delete Modified\tCtrl-R', 'Delete modified copy') - #self.Bind(wx.EVT_MENU, self.codePage.OnSave, id=saveID) - #self.Bind(wx.EVT_MENU, self.codePage.OnRestore, id=restoreID) - #self.mainmenu.Append(menu, 'Demo &Code') - # # Make a Help menu menu = wx.Menu() @@ -1201,7 +1213,7 @@ class wxPythonDemo(wx.Frame): shellItem = menu.Append(-1, 'Open Py&Shell Window\tF5', 'An interactive interpreter window with the demo app and frame objects in the namesapce') menu.AppendSeparator() - helpItem = menu.Append(-1, '&About\tCtrl-H', 'wxPython RULES!!!') + helpItem = menu.Append(-1, '&About wxPython Demo', 'wxPython RULES!!!') wx.App.SetMacAboutMenuItemId(helpItem.GetId()) self.Bind(wx.EVT_MENU, self.OnOpenShellWindow, shellItem) @@ -1626,7 +1638,8 @@ class wxPythonDemo(wx.Frame): self.demoPage = None self.codePage = None self.mainmenu = None - self.tbicon.Destroy() + if self.tbicon is not None: + self.tbicon.Destroy() self.Destroy()