Patches from Tomo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -27,6 +27,7 @@ class TestPanel(wx.Panel):
|
|||||||
self.OnChangeMonth()
|
self.OnChangeMonth()
|
||||||
|
|
||||||
def OnButton(self, evt):
|
def OnButton(self, evt):
|
||||||
|
if self.cal is not None:
|
||||||
self.cal.Destroy()
|
self.cal.Destroy()
|
||||||
self.cal = None
|
self.cal = None
|
||||||
|
|
||||||
|
@@ -98,8 +98,8 @@ def makeSimpleBox7(win):
|
|||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
def makeSimpleBox8(win):
|
def makeSimpleBox8(win):
|
||||||
box = wxBoxSizer(wx.VERTICAL)
|
box = wx.BoxSizer(wx.VERTICAL)
|
||||||
box.Add(wxButton(win, 1010, "one"), 0, wx.EXPAND)
|
box.Add(wx.Button(win, 1010, "one"), 0, wx.EXPAND)
|
||||||
box.Add((0,0), 1)
|
box.Add((0,0), 1)
|
||||||
box.Add(wx.Button(win, 1010, "two"), 0, wx.ALIGN_CENTER)
|
box.Add(wx.Button(win, 1010, "two"), 0, wx.ALIGN_CENTER)
|
||||||
box.Add((0,0), 1)
|
box.Add((0,0), 1)
|
||||||
@@ -271,7 +271,7 @@ def makeGrid3(win):
|
|||||||
(wx.Button(win, -1, 'two'), 0, wx.EXPAND),
|
(wx.Button(win, -1, 'two'), 0, wx.EXPAND),
|
||||||
(wx.Button(win, -1, 'three'), 0, wx.EXPAND),
|
(wx.Button(win, -1, 'three'), 0, wx.EXPAND),
|
||||||
(wx.Button(win, -1, 'four'), 0, wx.EXPAND),
|
(wx.Button(win, -1, 'four'), 0, wx.EXPAND),
|
||||||
#(wxButton(win, 1010, 'five'), 0, wxEXPAND),
|
#(wx.Button(win, 1010, 'five'), 0, wx.EXPAND),
|
||||||
((175, 50)),
|
((175, 50)),
|
||||||
(wx.Button(win, -1, 'six'), 0, wx.EXPAND),
|
(wx.Button(win, -1, 'six'), 0, wx.EXPAND),
|
||||||
(wx.Button(win, -1, 'seven'), 0, wx.EXPAND),
|
(wx.Button(win, -1, 'seven'), 0, wx.EXPAND),
|
||||||
@@ -440,14 +440,14 @@ theTests = [
|
|||||||
("", None, ""),
|
("", None, ""),
|
||||||
|
|
||||||
("Simple Grid", makeGrid1,
|
("Simple Grid", makeGrid1,
|
||||||
"This is an example of the wxGridSizer. In this case all row heights "
|
"This is an example of the wx.GridSizer. In this case all row heights "
|
||||||
"and column widths are kept the same as all the others and all items "
|
"and column widths are kept the same as all the others and all items "
|
||||||
"fill their available space. The horizontal and vertical gaps are set to "
|
"fill their available space. The horizontal and vertical gaps are set to "
|
||||||
"2 pixels each."
|
"2 pixels each."
|
||||||
),
|
),
|
||||||
|
|
||||||
("More Grid Features", makeGrid2,
|
("More Grid Features", makeGrid2,
|
||||||
"This is another example of the wxGridSizer. This one has no gaps in the grid, "
|
"This is another example of the wx.GridSizer. This one has no gaps in the grid, "
|
||||||
"but various cells are given different alignment options and some of them "
|
"but various cells are given different alignment options and some of them "
|
||||||
"hold nested sizers."
|
"hold nested sizers."
|
||||||
),
|
),
|
||||||
@@ -469,7 +469,7 @@ theTests = [
|
|||||||
|
|
||||||
("Proportional resize", makeSimpleBoxShaped,
|
("Proportional resize", makeSimpleBoxShaped,
|
||||||
"Managed items can preserve their original aspect ratio. The last item has the "
|
"Managed items can preserve their original aspect ratio. The last item has the "
|
||||||
"wxSHAPED flag set and will resize proportional to its original size."
|
"wx.SHAPED flag set and will resize proportional to its original size."
|
||||||
),
|
),
|
||||||
|
|
||||||
("Proportional resize with Alignments", makeShapes,
|
("Proportional resize with Alignments", makeShapes,
|
||||||
@@ -553,9 +553,6 @@ def runTest(frame, nb, log):
|
|||||||
return win
|
return win
|
||||||
|
|
||||||
overview = ""
|
overview = ""
|
||||||
#wxSizer.__doc__ + '\n' + '-' * 80 + '\n' + \
|
|
||||||
#wxBoxSizer.__doc__ + '\n' + '-' * 80 + '\n' + \
|
|
||||||
#wxBorderSizer.__doc__
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -67,7 +67,7 @@ class TestValueWindow(gizmos.TreeCompanionWindow):
|
|||||||
|
|
||||||
text = text + tree.GetItemText(itemId)
|
text = text + tree.GetItemText(itemId)
|
||||||
pen = wx.Pen(
|
pen = wx.Pen(
|
||||||
wx.SystemSettings_GetSystemColour(wx.SYS_COLOUR_3DLIGHT),
|
wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DLIGHT),
|
||||||
1, wx.SOLID
|
1, wx.SOLID
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@ class TestPanel(wx.Panel):
|
|||||||
)
|
)
|
||||||
|
|
||||||
splitter.SetSashSize(2)
|
splitter.SetSashSize(2)
|
||||||
tree = TestTree(splitter, -1, style = wx.TR_HAS_BUTTONS |
|
tree = TestTree(splitter, style = wx.TR_HAS_BUTTONS |
|
||||||
wx.TR_NO_LINES |
|
wx.TR_NO_LINES |
|
||||||
wx.TR_ROW_LINES |
|
wx.TR_ROW_LINES |
|
||||||
#wx.TR_HIDE_ROOT |
|
#wx.TR_HIDE_ROOT |
|
||||||
|
Reference in New Issue
Block a user