X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ac346f50461692f40d98ead8d6817ec8a668f915..61940a7061d0b5d5122b1e1e939cfa2d72596999:/wxPython/demo/joystick_wdr.py diff --git a/wxPython/demo/joystick_wdr.py b/wxPython/demo/joystick_wdr.py index 8595b096e5..7e4492be84 100644 --- a/wxPython/demo/joystick_wdr.py +++ b/wxPython/demo/joystick_wdr.py @@ -1,4 +1,3 @@ -#!/usr/env python #----------------------------------------------------------------------------- # Python source generated by wxDesigner from file: joystick.wdr # Do not modify this file, all changes will be lost! @@ -48,11 +47,11 @@ 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 ) - + item2 = wxStaticText( parent, ID_TEXT, "X Position:", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT ) item1.AddWindow( item2, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxTOP, 5 ) @@ -289,13 +288,13 @@ 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 ) - + return item0 # Menu bar functions