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)
#---------------------------------------------------------------------------
eval(code)
def ReadData(self):
- test_file = "TestTable.txt"
+ test_file = "./data/TestTable.txt"
file = open(test_file,'r',1)
i = 0
import wxListCtrl
import wxScrolledWindow
+import sys
+
#----------------------------------------------------------------------------
class TestNB(wxNotebook):
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()
+
+
+
sc = wxSpinCtrl(self, -1, "", wxPoint(30, 50), wxSize(80, -1))
sc.SetRange(1,100)
sc.SetValue(5)
+ #sc.Enable(false)
#----------------------------------------------------------------------