X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f77c79d049bbf925352c83543d47cfa8f542c485..fc12c1cb581162016d32d22f027ae427839adeeb:/wxPython/demo/Main.py diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index 3b2855807e..f45ed72242 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -60,6 +60,10 @@ _treeList = [ 'BitmapFromBuffer', 'RawBitmapAccess', 'DragScroller', +## 'AlphaDrawing', + 'DelayedResult', + 'ExpandoTextCtrl', + 'ButtonPanel', ]), # managed windows == things with a (optional) caption you can close @@ -143,6 +147,7 @@ _treeList = [ ('Custom Controls', [ 'AnalogClock', + 'ButtonPanel', 'ColourSelect', 'ComboTreeBox', 'Editor', @@ -168,6 +173,7 @@ _treeList = [ 'DatePickerCtrl', 'DynamicSashWindow', 'EditableListBox', + 'ExpandoTextCtrl', 'FancyText', 'FileBrowseButton', 'FloatBar', @@ -214,6 +220,7 @@ _treeList = [ # ditto ('Process and Events', [ + 'DelayedResult', 'EventManager', 'KeyEvents', 'Process', @@ -232,6 +239,7 @@ _treeList = [ # Images ('Using Images', [ +## 'AlphaDrawing', 'ArtProvider', 'BitmapFromBuffer', 'Cursor', @@ -247,6 +255,7 @@ _treeList = [ # Other stuff ('Miscellaneous', [ +## 'AlphaDrawing', 'ColourDB', ##'DialogUnits', # needs more explanations 'DragScroller', @@ -1140,8 +1149,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 @@ -1624,7 +1636,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()