]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/joystick_wdr.py
Lots of demo tweaks for API updates, bug fixes and new images for the
[wxWidgets.git] / wxPython / demo / joystick_wdr.py
index bb141f12d04d6c182c170f1951ff8346ae8f45e3..7e4492be846abdc984d002f022265f7015837412 100644 (file)
@@ -47,7 +47,7 @@ ID_U_Max_Ctrl = 10035
 ID_V_Min_Ctrl = 10036
 ID_V_Max_Ctrl = 10037
 
-def MakeJoystickTestPanel( parent, call_fit = true, set_sizer = true ):
+def MakeJoystickTestPanel( parent, call_fit = True, set_sizer = True ):
     item0 = wxBoxSizer( wxVERTICAL )
 
     item1 = wxFlexGridSizer( 0, 8, 0, 0 )
@@ -288,10 +288,10 @@ def MakeJoystickTestPanel( parent, call_fit = true, set_sizer = true ):
 
     item0.AddSizer( item1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 15 )
 
-    if set_sizer == true:
-        parent.SetAutoLayout( true )
+    if set_sizer == True:
+        parent.SetAutoLayout( True )
         parent.SetSizer( item0 )
-        if call_fit == true:
+        if call_fit == True:
             item0.Fit( parent )
             item0.SetSizeHints( parent )