]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Main.py
* GetValue() now returns true if the state is undetermined
[wxWidgets.git] / wxPython / demo / Main.py
index b6c623007a20f525160cfb3ece7f12e275b451ec..6e446b2c1eef34cf0c737a78262dc634ddb2cc83 100644 (file)
@@ -209,7 +209,6 @@ _treeList = [
         'OGL',
         'PrintFramework',
         'ShapedWindow',
-        'Throbber',
         'Unicode',
         'Wave',
         ]),
@@ -464,6 +463,22 @@ class wxPythonDemo(wx.Frame):
         splitter = wx.SplitterWindow(self, -1)
         splitter2 = wx.SplitterWindow(splitter, -1)
 
+        # Set up a log on the View Log Notebook page
+        self.log = wx.TextCtrl(splitter2, -1,
+                              style = wx.TE_MULTILINE|wx.TE_READONLY|wx.HSCROLL)
+
+        # Set the wxWindows log target to be this textctrl
+        #wx.Log_SetActiveTarget(wx.LogTextCtrl(self.log))
+
+        # But instead of the above we want to show how to use our own wx.Log class
+        wx.Log_SetActiveTarget(MyLog(self.log))
+
+        # for serious debugging
+        #wx.Log_SetActiveTarget(wx.LogStderr())
+        #wx.Log_SetTraceMask(wx.TraceMessages)
+
+
+
         def EmptyHandler(evt): pass
         #splitter.Bind(wx.EVT_ERASE_BACKGROUND, EmptyHandler)
         #splitter2.Bind(wx.EVT_ERASE_BACKGROUND, EmptyHandler)
@@ -579,21 +594,6 @@ class wxPythonDemo(wx.Frame):
         self.LoadDemoSource('Main.py')
 
 
-        # Set up a log on the View Log Notebook page
-        self.log = wx.TextCtrl(splitter2, -1,
-                              style = wx.TE_MULTILINE|wx.TE_READONLY|wx.HSCROLL)
-
-        # Set the wxWindows log target to be this textctrl
-        #wx.Log_SetActiveTarget(wx.LogTextCtrl(self.log))
-
-        # But instead of the above we want to show how to use our own wx.Log class
-        wx.Log_SetActiveTarget(MyLog(self.log))
-
-        # for serious debugging
-        #wx.Log_SetActiveTarget(wx.LogStderr())
-        #wx.Log_SetTraceMask(wx.TraceMessages)
-
-
         # add the windows to the splitter and split it.
         splitter2.SplitHorizontally(self.nb, self.log, -120)
         splitter.SplitVertically(self.tree, splitter2, 180)