demo tweak for better testing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -7,16 +7,18 @@ import images
|
|||||||
|
|
||||||
class TestToolBar(wxFrame):
|
class TestToolBar(wxFrame):
|
||||||
def __init__(self, parent, log):
|
def __init__(self, parent, log):
|
||||||
wxFrame.__init__(self, parent, -1, 'Test ToolBar',
|
wxFrame.__init__(self, parent, -1, 'Test ToolBar', size=(500, 300))
|
||||||
wxPoint(0,0), wxSize(500, 300))
|
|
||||||
self.log = log
|
self.log = log
|
||||||
self.timer = None
|
self.timer = None
|
||||||
EVT_CLOSE(self, self.OnCloseWindow)
|
EVT_CLOSE(self, self.OnCloseWindow)
|
||||||
|
|
||||||
wxWindow(self, -1).SetBackgroundColour(wxNamedColour("WHITE"))
|
wxWindow(self, -1).SetBackgroundColour(wxNamedColour("WHITE"))
|
||||||
|
|
||||||
tb = self.CreateToolBar(wxTB_HORIZONTAL|wxNO_BORDER|wxTB_FLAT|wxTB_TEXT)
|
tb = self.CreateToolBar( wxTB_HORIZONTAL
|
||||||
# wxTB_VERTICAL
|
| wxNO_BORDER
|
||||||
|
| wxTB_FLAT
|
||||||
|
| wxTB_TEXT
|
||||||
|
)
|
||||||
#tb = wxToolBarSimple(self, -1, wxDefaultPosition, wxDefaultSize,
|
#tb = wxToolBarSimple(self, -1, wxDefaultPosition, wxDefaultSize,
|
||||||
# wxTB_HORIZONTAL | wxNO_BORDER | wxTB_FLAT)
|
# wxTB_HORIZONTAL | wxNO_BORDER | wxTB_FLAT)
|
||||||
#self.SetToolBar(tb)
|
#self.SetToolBar(tb)
|
||||||
|
Reference in New Issue
Block a user