]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed some demos
authorRobin Dunn <robin@alldunn.com>
Sun, 21 Oct 2001 03:44:47 +0000 (03:44 +0000)
committerRobin Dunn <robin@alldunn.com>
Sun, 21 Oct 2001 03:44:47 +0000 (03:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/ColorPanel.py
wxPython/demo/TablePrint.py
wxPython/demo/wxNotebook.py
wxPython/demo/wxSpinCtrl.py

index f90a8b0e73e46fa7102d73b9715b1f0830b462c7..f7dc76ba0b696132e4aaf6b18af980886ad036a7 100644 (file)
@@ -6,8 +6,7 @@ from wxPython.wx import *
 
 class ColoredPanel(wxWindow):
     def __init__(self, parent, color):
-        wxWindow.__init__(self, parent, -1,
-                          wxDefaultPosition, wxDefaultSize, wxRAISED_BORDER)
+        wxWindow.__init__(self, parent, -1, style = wxSIMPLE_BORDER) #wxRAISED_BORDER)
         self.SetBackgroundColour(color)
 
 #---------------------------------------------------------------------------
index c2c5255b5d4ef8d28ae4bcf063ec4d727523f015..7fa8e4eeb3c8d52aa27059058dec8cd35dc758e7 100644 (file)
@@ -40,7 +40,7 @@ class TablePanel(wxPanel):
         eval(code)
 
     def ReadData(self):
-        test_file = "TestTable.txt"
+        test_file = "./data/TestTable.txt"
         file = open(test_file,'r',1)
         i = 0
 
index 00d2f5b9d007b51fe83cf0142f2dd6af9b53a7f1..745b40c13c3ec27aa424da7fbebeb4b5af867d67 100644 (file)
@@ -6,6 +6,8 @@ import GridSimple
 import wxListCtrl
 import wxScrolledWindow
 
+import sys
+
 #----------------------------------------------------------------------------
 
 class TestNB(wxNotebook):
@@ -85,3 +87,14 @@ This class represents a notebook control, which manages multiple windows with as
 To use the class, create a wxNotebook object and call AddPage or InsertPage, passing a window to be used as the page. Do not explicitly delete the window for a page that is currently managed by wxNotebook.
 
 """
+
+
+if __name__ == "__main__":
+    app = wxPySimpleApp()
+    frame = wxFrame(None, -1, "Test Notebook", size=(600, 400))
+    win = TestNB(frame, -1, sys.stdout)
+    frame.Show(true)
+    app.MainLoop()
+
+
+
index 7729b88b5d3fadd32cf9eebe43324f68c2372ded..f373c82aa03f13d69fa35c0f91449101452ef5d5 100644 (file)
@@ -17,6 +17,7 @@ class TestPanel(wxPanel):
         sc = wxSpinCtrl(self, -1, "", wxPoint(30, 50), wxSize(80, -1))
         sc.SetRange(1,100)
         sc.SetValue(5)
+        #sc.Enable(false)
 
 
 #----------------------------------------------------------------------