-#!/usr/env python
#-----------------------------------------------------------------------------
# Python source generated by wxDesigner from file: mimetypes.wdr
# Do not modify this file, all changes will be lost!
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 )
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 )
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 )
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