]> git.saurik.com Git - wxWidgets.git/commitdiff
README scrolling fix
authorRoman Rolinsky <rolinsky@femagsoft.com>
Mon, 14 Mar 2005 17:09:40 +0000 (17:09 +0000)
committerRoman Rolinsky <rolinsky@femagsoft.com>
Mon, 14 Mar 2005 17:09:40 +0000 (17:09 +0000)
fix for Mac (opts inside try/except)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/tools/XRCed/xrced.py

index 003eca63d2d409759f8874b38707359e06078153..d9ffccd342c838cdaea7b78d6d66bfd29078aabf 100644 (file)
@@ -72,6 +72,7 @@ class ScrolledMessageDialog(wxDialog):
         ok = wxButton(self, wxID_OK, "OK")
         text.SetConstraints(Layoutf('t=t5#1;b=t5#2;l=l5#1;r=r5#1', (self,ok)))
         text.SetSize((w * 80 + 30, h * 40))
         ok = wxButton(self, wxID_OK, "OK")
         text.SetConstraints(Layoutf('t=t5#1;b=t5#2;l=l5#1;r=r5#1', (self,ok)))
         text.SetSize((w * 80 + 30, h * 40))
+        text.ShowPosition(1)
         ok.SetConstraints(Layoutf('b=b5#1;x%w50#1;w!80;h!25', (self,)))
         self.SetAutoLayout(True)
         self.Fit()
         ok.SetConstraints(Layoutf('b=b5#1;x%w50#1;w!80;h!25', (self,)))
         self.SetAutoLayout(True)
         self.Fit()
@@ -990,8 +991,8 @@ class App(wxApp):
     def OnInit(self):
         global debug
         # Process comand-line
     def OnInit(self):
         global debug
         # Process comand-line
+        opts = args = None
         try:
         try:
-            opts = args = None
             opts, args = getopt.getopt(sys.argv[1:], 'dhiv')
             for o,a in opts:
                 if o == '-h':
             opts, args = getopt.getopt(sys.argv[1:], 'dhiv')
             for o,a in opts:
                 if o == '-h':