Various layout fixes and such

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2004-06-14 19:10:20 +00:00
parent 2706d2fede
commit 6ab5d4883f
5 changed files with 12 additions and 6 deletions

View File

@ -14,7 +14,7 @@ class TestPanel(wx.Panel):
wx.StaticText(self, -1, "This example uses the wxCheckListBox control.", (45, 15))
lb = wx.CheckListBox(self, -1, (80, 50), (80, 120), sampleList)
lb = wx.CheckListBox(self, -1, (80, 50), wx.DefaultSize, sampleList)
self.Bind(wx.EVT_LISTBOX, self.EvtListBox, lb)
self.Bind(wx.EVT_LISTBOX_DCLICK, self.EvtListBoxDClick, lb)
lb.SetSelection(0)

View File

@ -13,7 +13,7 @@ class TestChoice(wx.Panel):
wx.StaticText(self, -1, "This example uses the wxChoice control.", (15, 10))
wx.StaticText(self, -1, "Select one:", (15, 50), (75, 20))
self.ch = wx.Choice(self, -1, (80, 50), choices = sampleList)
self.ch = wx.Choice(self, -1, (90, 50), choices = sampleList)
self.Bind(wx.EVT_CHOICE, self.EvtChoice, self.ch)

View File

@ -68,8 +68,13 @@ class TestPanel(wx.Panel):
#----------------------------------------------------------------------
def runTest(frame, nb, log):
win = TestPanel(nb, log)
return win
if wx.Platform == "__WXMAC__":
wx.MessageBox("This demo currently fails on the Mac.",
"Sorry")
return
else:
win = TestPanel(nb, log)
return win
#----------------------------------------------------------------------

View File

@ -17,8 +17,9 @@ class TestPanel(wx.Panel):
self.text = wx.TextCtrl(self, -1, "1", (30, 50), (60, -1))
h = self.text.GetSize().height
w = self.text.GetSize().width + self.text.GetPosition().x
self.spin = wx.SpinButton(self, -1, (92, 50), (h/2, h), wx.SP_VERTICAL)
self.spin = wx.SpinButton(self, -1, (w + 6, 50), (h/2, h), wx.SP_VERTICAL)
self.spin.SetRange(1, 100)
self.spin.SetValue(1)

View File

@ -10,7 +10,7 @@ class TestPanel(wx.Panel):
self.count = 0
wx.StaticText(self, -1, "This example uses the wx.SpinCtrl control.", (45, 15))
sc = wx.SpinCtrl(self, -1, "", (30, 50), (80, -1))
sc = wx.SpinCtrl(self, -1, "", (30, 50))
sc.SetRange(1,100)
sc.SetValue(5)