]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Main.py
Use wx.CLIP_CHILDREN on the splitter windows
[wxWidgets.git] / wxPython / demo / Main.py
index d57aebbb3662ae8e991a71348b84ca4779674cbf..e04c32b2315db1848cedc877dae141cbe580af5c 100644 (file)
@@ -71,7 +71,6 @@ _treeList = [
 
     # dialogs from libraries
     ('More Dialogs', [
-        ##'ErrorDialogs',
         'ImageBrowser',
         'MultipleChoiceDialog',
         'ScrolledMessageDialog',
@@ -143,7 +142,6 @@ _treeList = [
         'FloatBar',  
         'FloatCanvas',
         'HtmlWindow',
-        ##'IEHtmlWin',
         'IntCtrl',
         'MVCTree',   
         'MaskedEditControls',
@@ -180,7 +178,6 @@ _treeList = [
     ('Process and Events', [
         'EventManager',
         'KeyEvents',
-        ##'OOR',
         'Process',
         'PythonEvents',
         'Threads',
@@ -215,7 +212,6 @@ _treeList = [
         'FileHistory',
         'FontEnumerator',
         'Joystick',
-        'NewNamespace',
         'OGL',
         'PrintFramework',
         'ShapedWindow',
@@ -225,10 +221,7 @@ _treeList = [
 
     # need libs not coming with the demo
     ('Objects using an external library', [
-        ##'ActiveXWrapper_Acrobat',
-        ##'ActiveXWrapper_IE',      # currently has tstate problems...
         'GLCanvas',
-        #'PlotCanvas', # deprecated, use PyPlot
         ]),
 
 
@@ -471,8 +464,8 @@ class wxPythonDemo(wx.Frame):
         self.Centre(wx.BOTH)
         self.CreateStatusBar(1, wx.ST_SIZEGRIP)
 
-        splitter = wx.SplitterWindow(self, -1)
-        splitter2 = wx.SplitterWindow(splitter, -1) ##, size=(20,20))
+        splitter = wx.SplitterWindow(self, -1, style=wx.CLIP_CHILDREN)
+        splitter2 = wx.SplitterWindow(splitter, -1, style=wx.CLIP_CHILDREN)
 
         # Set up a log on the View Log Notebook page
         self.log = wx.TextCtrl(splitter2, -1,
@@ -823,8 +816,6 @@ class wxPythonDemo(wx.Frame):
         self.dying = True
         self.window = None
         self.mainmenu = None
-        if hasattr(self, "tbicon"):
-            del self.tbicon
         self.Destroy()