X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b37c7e1dcdad16c20d9800d2abaf53cc6b653a64..61940a7061d0b5d5122b1e1e939cfa2d72596999:/wxPython/demo/mimetypes_wdr.py diff --git a/wxPython/demo/mimetypes_wdr.py b/wxPython/demo/mimetypes_wdr.py index c31696323f..348ca568c7 100644 --- a/wxPython/demo/mimetypes_wdr.py +++ b/wxPython/demo/mimetypes_wdr.py @@ -1,4 +1,3 @@ -#!/usr/env python #----------------------------------------------------------------------------- # Python source generated by wxDesigner from file: mimetypes.wdr # Do not modify this file, all changes will be lost! @@ -27,16 +26,16 @@ ID_PRINT_CMD_TXT = 10014 ID_ALL_CMDS_TXT = 10015 ID_LISTBOX = 10016 -def MakeMimeTypesTestPanel( parent, call_fit = true, set_sizer = true ): +def MakeMimeTypesTestPanel( parent, call_fit = True, set_sizer = True ): item0 = wxBoxSizer( wxVERTICAL ) - + item1 = wxBoxSizer( wxHORIZONTAL ) - + item2 = wxTextCtrl( parent, ID_INPUT_TEXT, "", wxDefaultPosition, wxSize(100,-1), 0 ) item1.AddWindow( item2, 0, wxALIGN_CENTRE|wxALL, 5 ) item3 = wxRadioButton( parent, ID_EXTENSION_Btn, "By extension", wxDefaultPosition, wxDefaultSize, wxRB_GROUP ) - item3.SetValue( true ) + item3.SetValue( True ) item1.AddWindow( item3, 0, wxALIGN_CENTRE|wxALL, 5 ) item4 = wxRadioButton( parent, ID_MIME_BTN, "By mime type", wxDefaultPosition, wxDefaultSize, 0 ) @@ -52,22 +51,22 @@ def MakeMimeTypesTestPanel( parent, call_fit = true, set_sizer = true ): item0.AddWindow( item6, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 ) item7 = wxBoxSizer( wxHORIZONTAL ) - + item8 = wxFlexGridSizer( 0, 2, 0, 0 ) item8.AddGrowableCol( 1 ) item8.AddGrowableRow( 8 ) - + item9 = wxStaticText( parent, ID_TEXT, "wxFileType:", wxDefaultPosition, wxDefaultSize, 0 ) item9.SetFont( wxFont( 14, wxSWISS, wxNORMAL, wxBOLD ) ) item8.AddWindow( item9, 0, wxALL, 5 ) - item8.AddSpacer( 20, 20, 0, wxALIGN_CENTRE|wxALL, 5 ) + item8.AddSpacer( (20, 20), 0, wxALIGN_CENTRE|wxALL, 5 ) item10 = wxStaticText( parent, ID_TEXT, "GetIconInfo:", wxDefaultPosition, wxDefaultSize, 0 ) item8.AddWindow( item10, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5 ) item11 = wxBoxSizer( wxHORIZONTAL ) - + item12 = wxStaticBitmap( parent, ID_ICON_BMP, MyBitmapsFunc( 0 ), wxDefaultPosition, wxDefaultSize ) item11.AddWindow( item12, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ) @@ -124,7 +123,7 @@ def MakeMimeTypesTestPanel( parent, call_fit = true, set_sizer = true ): item7.AddSizer( item8, 1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 ) item29 = wxBoxSizer( wxVERTICAL ) - + item30 = wxStaticText( parent, ID_TEXT, "Known mime types:", wxDefaultPosition, wxDefaultSize, 0 ) item29.AddWindow( item30, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxTOP|wxBOTTOM, 5 ) @@ -135,13 +134,13 @@ def MakeMimeTypesTestPanel( parent, call_fit = true, set_sizer = true ): item0.AddSizer( item7, 1, wxGROW|wxALIGN_CENTER_VERTICAL, 5 ) - 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