style = wxTAB_TRAVERSAL ):
wxPanel.__init__(self, parent, id, pos, size, style)
- MakeMimeTypesTestPanel( self, true )
+ MakeMimeTypesTestPanel( self, True )
# WDR: handler declarations for MimeTypesTestPanel
EVT_LISTBOX(self, ID_LISTBOX, self.OnListbox)
def OnListbox(self, event):
mimetype = event.GetString()
self.GetInputText().SetValue(mimetype)
- self.GetMimeBtn().SetValue(TRUE)
- self.GetExtensionBtn().SetValue(FALSE)
+ self.GetMimeBtn().SetValue(True)
+ self.GetExtensionBtn().SetValue(False)
self.OnLookup()
import mimetypes_wdr
+import images
def MyBitmapsFunc( index ):
- return wxImage( opj("bitmaps/noicon.png"), wxBITMAP_TYPE_PNG ).ConvertToBitmap()
+ return images.getNoIconBitmap()
mimetypes_wdr.MyBitmapsFunc = MyBitmapsFunc
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])