]> git.saurik.com Git - wxWidgets.git/commitdiff
Demo cleanup
authorRobin Dunn <robin@alldunn.com>
Tue, 20 Nov 2001 07:40:06 +0000 (07:40 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 20 Nov 2001 07:40:06 +0000 (07:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/FontEnumerator.py
wxPython/demo/wxMiniFrame.py
wxPython/demo/wxRightTextCtrl.py

index 79421a2a2f5f7506cf1c85b66ebd4b644316bfd7..bbad99dffb88bbd80cf5545d7758163d57f47ec8 100644 (file)
@@ -35,7 +35,6 @@ class TestPanel(wxPanel):
 
 
 
-
 #----------------------------------------------------------------------
 
 def runTest(frame, nb, log):
index 3a5f66f5eed7c3d53c7ee187687064bad07ab290..f710e472cde2a59864404715b6e19c3e89f676d2 100644 (file)
@@ -3,8 +3,8 @@ from wxPython.wx import *
 
 #---------------------------------------------------------------------------
 class MyMiniFrame(wxMiniFrame):
-    def __init__(self, parent, ID, title, pos, size, style):
-        wxMiniFrame.__init__(self, parent, ID, title, pos, size, style)
+    def __init__(self, parent, title, style):
+        wxMiniFrame.__init__(self, parent, -1, title, style=style)
         panel = wxPanel(self, -1)
 
         button = wxButton(panel, 1003, "Close Me")
@@ -21,9 +21,10 @@ class MyMiniFrame(wxMiniFrame):
 #---------------------------------------------------------------------------
 
 def runTest(frame, nb, log):
-    win = MyMiniFrame(frame, -1, "This is a wxMiniFrame",
-                      (250, 250), (200, 200),
+    win = MyMiniFrame(frame, "This is a wxMiniFrame",
                       wxDEFAULT_FRAME_STYLE | wxTINY_CAPTION_HORIZ)
+    win.SetSize((200, 200))
+    win.CenterOnParent(wxBOTH)
     frame.otherWin = win
     win.Show(true)
 
index 47428fc642305f9a9c829309fd0818279ed47f01..0322b3e8753ae12e1aece2418877f5bb92faff56 100644 (file)
@@ -13,7 +13,7 @@ class TestPanel(wxPanel):
         fgs = wxFlexGridSizer(cols=2, vgap=5, hgap=5)
         txt = wxStaticText(self, -1,
                            "These text controls will align their contents\n"
-                           "to the right when they don't have focus.", style=wxALIGN_RIGHT )
+                           "to the right (onwxMSW) when they don't have focus.", style=wxALIGN_RIGHT )
         fgs.Add(txt)
         fgs.Add(wxRightTextCtrl(self, -1, "", size=(75, -1)))