demo tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
._demo.py
|
._demo.py
|
||||||
.emacs.desktop
|
.emacs.desktop
|
||||||
.gdb_history
|
.gdb_history
|
||||||
|
.setup.bat
|
||||||
.setup.sh
|
.setup.sh
|
||||||
b.bat
|
b.bat
|
||||||
hangman_dict.txt
|
hangman_dict.txt
|
||||||
|
@@ -188,7 +188,7 @@ class InnerTile(wxPanel):
|
|||||||
r = InnerTile.START_COLOR_TUPLE[0] + (InnerTile.DELTAS[0] * percent)
|
r = InnerTile.START_COLOR_TUPLE[0] + (InnerTile.DELTAS[0] * percent)
|
||||||
g = InnerTile.START_COLOR_TUPLE[1] + (InnerTile.DELTAS[1] * percent)
|
g = InnerTile.START_COLOR_TUPLE[1] + (InnerTile.DELTAS[1] * percent)
|
||||||
b = InnerTile.START_COLOR_TUPLE[2] + (InnerTile.DELTAS[2] * percent)
|
b = InnerTile.START_COLOR_TUPLE[2] + (InnerTile.DELTAS[2] * percent)
|
||||||
self.setColor(wxColor(r,g,b))
|
self.setColor(wxColor(int(r), int(g), int(b)))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -5,8 +5,11 @@ from wxPython.wx import *
|
|||||||
|
|
||||||
def runTest(frame, nb, log):
|
def runTest(frame, nb, log):
|
||||||
data = wxPageSetupDialogData()
|
data = wxPageSetupDialogData()
|
||||||
data.SetMarginTopLeft(wxPoint(50,50))
|
data.SetMarginTopLeft( (15, 15) )
|
||||||
data.SetMarginBottomRight(wxPoint(50,50))
|
data.SetMarginBottomRight( (15, 15) )
|
||||||
|
#data.SetDefaultMinMargins(True)
|
||||||
|
data.SetPaperId(wxPAPER_LETTER)
|
||||||
|
|
||||||
dlg = wxPageSetupDialog(frame, data)
|
dlg = wxPageSetupDialog(frame, data)
|
||||||
if dlg.ShowModal() == wxID_OK:
|
if dlg.ShowModal() == wxID_OK:
|
||||||
data = dlg.GetPageSetupData()
|
data = dlg.GetPageSetupData()
|
||||||
|
@@ -69,6 +69,8 @@ class TestToolBar(wxFrame):
|
|||||||
|
|
||||||
def OnToolClick(self, event):
|
def OnToolClick(self, event):
|
||||||
self.log.WriteText("tool %s clicked\n" % event.GetId())
|
self.log.WriteText("tool %s clicked\n" % event.GetId())
|
||||||
|
tb = self.GetToolBar()
|
||||||
|
tb.EnableTool(10, not tb.GetToolEnabled(10))
|
||||||
|
|
||||||
def OnToolRClick(self, event):
|
def OnToolRClick(self, event):
|
||||||
self.log.WriteText("tool %s right-clicked\n" % event.GetId())
|
self.log.WriteText("tool %s right-clicked\n" % event.GetId())
|
||||||
|
Reference in New Issue
Block a user