Fixed some demos
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -6,8 +6,7 @@ from wxPython.wx import *
|
|||||||
|
|
||||||
class ColoredPanel(wxWindow):
|
class ColoredPanel(wxWindow):
|
||||||
def __init__(self, parent, color):
|
def __init__(self, parent, color):
|
||||||
wxWindow.__init__(self, parent, -1,
|
wxWindow.__init__(self, parent, -1, style = wxSIMPLE_BORDER) #wxRAISED_BORDER)
|
||||||
wxDefaultPosition, wxDefaultSize, wxRAISED_BORDER)
|
|
||||||
self.SetBackgroundColour(color)
|
self.SetBackgroundColour(color)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
@@ -40,7 +40,7 @@ class TablePanel(wxPanel):
|
|||||||
eval(code)
|
eval(code)
|
||||||
|
|
||||||
def ReadData(self):
|
def ReadData(self):
|
||||||
test_file = "TestTable.txt"
|
test_file = "./data/TestTable.txt"
|
||||||
file = open(test_file,'r',1)
|
file = open(test_file,'r',1)
|
||||||
i = 0
|
i = 0
|
||||||
|
|
||||||
|
@@ -6,6 +6,8 @@ import GridSimple
|
|||||||
import wxListCtrl
|
import wxListCtrl
|
||||||
import wxScrolledWindow
|
import wxScrolledWindow
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
class TestNB(wxNotebook):
|
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.
|
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()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -17,6 +17,7 @@ class TestPanel(wxPanel):
|
|||||||
sc = wxSpinCtrl(self, -1, "", wxPoint(30, 50), wxSize(80, -1))
|
sc = wxSpinCtrl(self, -1, "", wxPoint(30, 50), wxSize(80, -1))
|
||||||
sc.SetRange(1,100)
|
sc.SetRange(1,100)
|
||||||
sc.SetValue(5)
|
sc.SetValue(5)
|
||||||
|
#sc.Enable(false)
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user