wxPython from Linux to Windows -


i have wxpython application developed on linux wish deploy on windows machines. while of things work on porting there small (but catastrophic) problems, none of seem related. rather list them all, i'll start one.

i have array of images read in , place in gridbagsizer in class. unfortunately, 'bind' statement doesn't seem take effect, , when double-click on image 'onsuitdclick' not called.

    suitsizer=suitdisplay(self, suit  def onsuitdclick(self, event):   print 'sc'              class suitdisplay(wx.panel): def __init__(self, frame, suit):   wx.panel.__init__(self, frame, id=wx.id_any)    suitsizer=wx.gridbagsizer(1, 13)   suitlist=[]   ii in range(0, len(g.cards)):     if g.cards[ii]+g.suits[suit] in frame.availablecards:       card=g.cards[ii]+g.suits[suit]       suitlist.append(card)   ii in range(0, len(suitlist)):     card= suitlist[ii]       image = wx.bitmap(frame.imagefolder+card+'.png',wx.bitmap_type_png).converttoimage()     img = wx.staticbitmap(self, -1, image.converttobitmap(), name=card)     img.bind(wx.evt_left_dclick, frame.onsuitdclick)      suitsizer.add(img, pos=(0,cardpos), flag=wx.left, border=border)   self.setsizer(suitsizer)  

needless say, works in linux.

can suggest might solution?


Comments