]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed a layout bug in XRCed
authorRobin Dunn <robin@alldunn.com>
Sat, 24 Aug 2002 02:30:48 +0000 (02:30 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 24 Aug 2002 02:30:48 +0000 (02:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wxPython/tools/XRCed/params.py
wxPython/wxPython/tools/XRCed/xrced.py

index 319034e02e3d003e40acc0d002ed4807c18ca480..30b0ae9072dfe411b361f20d74e2b964096c5c6f 100644 (file)
@@ -93,7 +93,7 @@ class ParamBinaryOr(PPanel):
         dlg.SetSizer(topSizer)
         topSizer.Fit(dlg)
         dlg.Center()
-        if dlg.ShowModal() == wxID_OK: 
+        if dlg.ShowModal() == wxID_OK:
             value = []
             for i in range(listBox.Number()):
                 if listBox.IsChecked(i):
@@ -146,7 +146,7 @@ class ParamColour(PPanel):
         sizer = wxBoxSizer()
         self.text = wxTextCtrl(self, self.ID_TEXT_CTRL, size=(65,-1))
         sizer.Add(self.text, 0, wxRIGHT, 5)
-        self.button = wxPanel(self, self.ID_BUTTON, wxDefaultPosition, wxSize(40, -1))
+        self.button = wxPanel(self, self.ID_BUTTON, wxDefaultPosition, wxSize(20, 20))
         sizer.Add(self.button, 0, wxGROW)
         self.SetAutoLayout(true)
         self.SetSizer(sizer)
@@ -608,7 +608,7 @@ class ParamIntList(ParamContent):
             self.textModified = false
         dlg.Destroy()
 
-# Boxless radiobox 
+# Boxless radiobox
 class RadioBox(PPanel):
     def __init__(self, parent, id, choices,
                  pos=wxDefaultPosition, name='radiobox'):
@@ -660,7 +660,7 @@ class ParamOrient(RadioBox):
         self.SetStringSelection(self.seulav[value])
 
 class ParamFile(PPanel):
-    def __init__(self, parent, name):    
+    def __init__(self, parent, name):
         PPanel.__init__(self, parent, name)
         self.ID_TEXT_CTRL = wxNewId()
         self.ID_BUTTON_BROWSE = wxNewId()
@@ -677,7 +677,7 @@ class ParamFile(PPanel):
         EVT_BUTTON(self, self.ID_BUTTON_BROWSE, self.OnButtonBrowse)
         EVT_TEXT(self, self.ID_TEXT_CTRL, self.OnChange)
     def OnChange(self, evt):
-        if self.freeze: return        
+        if self.freeze: return
         self.SetModified()
         self.textModified = true
         evt.Skip()
index 0584f63043a5c2d292eb5ca66b8c113fd3d9bb58..7e6c2797a86c1e01b52c2d1ef5db11bc752e1f87 100644 (file)
@@ -747,7 +747,7 @@ class XML_Tree(wxTreeCtrl):
         if xxx.className == 'wxFrame':
             # Create new frame
             testWin = wxPreFrame()
-            res.LoadFrame(testWin, frame, xxx.name)
+            res.LoadOnFrame(testWin, frame, xxx.name)
             # Create status bar
             testWin.CreateStatusBar()
             testWin.panel = testWin