]> git.saurik.com Git - wxWidgets.git/commitdiff
Added some missing wx namespace corrections
authorRobin Dunn <robin@alldunn.com>
Tue, 13 Jan 2004 20:33:49 +0000 (20:33 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 13 Jan 2004 20:33:49 +0000 (20:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/Sizers.py

index e7d286caa6455885b6c50626711f2253d6958d79..f7e168aee931c5b1016c3f1350cdd5a2d33cd3ca 100644 (file)
@@ -86,26 +86,26 @@ def makeSimpleBox6(win):
 #----------------------------------------------------------------------
 
 def makeSimpleBox7(win):
-    box = wxBoxSizer(wxHORIZONTAL)
-    box.Add(wxButton(win, 1010, "one"), 0, wxEXPAND)
-    box.Add(wxButton(win, 1010, "two"), 0, wxEXPAND)
-    box.Add(wxButton(win, 1010, "three"), 0, wxEXPAND)
-    box.Add((60, 20), 0, wxEXPAND)
-    box.Add(wxButton(win, 1010, "five"), 1, wxEXPAND)
+    box = wx.BoxSizer(wx.HORIZONTAL)
+    box.Add(wx.Button(win, 1010, "one"), 0, wx.EXPAND)
+    box.Add(wx.Button(win, 1010, "two"), 0, wx.EXPAND)
+    box.Add(wx.Button(win, 1010, "three"), 0, wx.EXPAND)
+    box.Add((60, 20), 0, wx.EXPAND)
+    box.Add(wx.Button(win, 1010, "five"), 1, wx.EXPAND)
 
     return box
 
 #----------------------------------------------------------------------
 
 def makeSimpleBox8(win):
-    box = wxBoxSizer(wxVERTICAL)
-    box.Add(wxButton(win, 1010, "one"), 0, wxEXPAND)
+    box = wxBoxSizer(wx.VERTICAL)
+    box.Add(wxButton(win, 1010, "one"), 0, wx.EXPAND)
     box.Add((0,0), 1)
-    box.Add(wxButton(win, 1010, "two"), 0, wxALIGN_CENTER)
+    box.Add(wx.Button(win, 1010, "two"), 0, wx.ALIGN_CENTER)
     box.Add((0,0), 1)
-    box.Add(wxButton(win, 1010, "three"), 0, wxEXPAND)
-    box.Add(wxButton(win, 1010, "four"), 0, wxEXPAND)
-#    box.Add(wxButton(win, 1010, "five"), 1, wxEXPAND)
+    box.Add(wx.Button(win, 1010, "three"), 0, wx.EXPAND)
+    box.Add(wx.Button(win, 1010, "four"), 0, wx.EXPAND)
+#    box.Add(wx.Button(win, 1010, "five"), 1, wx.EXPAND)
 
     return box