Exemple #1
0
 def LoadData(self):
     '''
     If data is not an image, this must be subclassed
     '''
     dataPath = self.dataPath
     print"dataPath:",dataPath
     self.oldPath = dataPath
     self.data = wxDotImage(dataPath, wxDotBITMAP_TYPE_ANY)
     self.data1 = wxDotImage('cross.png', wxDotBITMAP_TYPE_ANY)
Exemple #2
0
    def __init__(self, parent, dataPath):
        img = wx.EmptyImage(240,240)
#        self.display = wx.StaticBitmap(parent, wx.ID_ANY, 
#                                         wx.BitmapFromImage(img))
        print"trying to load image from:", dataPath
        self.display = wx.StaticBitmap(parent, wx.ID_ANY, wx.BitmapFromImage(wxDotImage(dataPath, wxDotBITMAP_TYPE_ANY)))
        Model.__init__(self, parent, dataPath)
Exemple #3
0
 def LoadData(self,dataPath):
     '''
     If data is not an image, this must be subclassed
     '''
     self.data = wxDotImage(dataPath, wxDotBITMAP_TYPE_ANY)
     pass