Hi all.
I just upgraded to wxpython 2.7
Its way cool.
However, in one of my apps, i have embedded a flash activex control.
I have had it working great in wxpython 2.6.
After i upgraded to 2.7, i stopped receiving events from flash!
But whats even weirder is that when i embed the flash activex in a wx.Frame
instead of a wx.Panel, i do get the flash events!
I am most mystified....do es anyone have any idea here?
thanks all,
matt
Heres the trimmed down version of the code that used to give me events:
Note that when i change the wx.Panel to wx.Frame, i start getting the events
again.
#panel for displaying activex flash
class FlashPanel(wx.P anel):
def __init__(self, parent, id=-1):
wx.Panel.__init __(self, parent, id)
self.parent = parent
self.InitWindow Properties()
self.CreateFlas hPlayer()
def InitWindowPrope rties(self):
print 'initializing flash interface...'
self.FlashPlaye rTopSizer = wx.BoxSizer(wx. VERTICAL)
self.SetSizer(s elf.FlashPlayer TopSizer)
self.SetAutoLay out(True)
self.Show(True)
#create the activex flash
def CreateFlashPlay er(self):
FlashModule =
win32com.client .gencache.Ensur eModule('{D27CD B6B-AE6D-11CF-96B8-444553540000}',
0,1,0)
FlashActiveXCla ss = MakeActiveXClas s(FlashModule.S hockwaveFlash,
eventObj=self)
self.FlashPlaye r = FlashActiveXCla ss(self, -1)
self.FlashPlaye rTopSizer.Add(s elf.FlashPlayer , 1, wx.EXPAND)
#callback for when a call is made from flash to python
def OnFlashCall(sel f, *Args): print 'got a callback from flash!'
_______________ _______________ _______________ _______________ _____
Share your latest news with your friends with the Windows Live Spaces
friends module.
I just upgraded to wxpython 2.7
Its way cool.
However, in one of my apps, i have embedded a flash activex control.
I have had it working great in wxpython 2.6.
After i upgraded to 2.7, i stopped receiving events from flash!
But whats even weirder is that when i embed the flash activex in a wx.Frame
instead of a wx.Panel, i do get the flash events!
I am most mystified....do es anyone have any idea here?
thanks all,
matt
Heres the trimmed down version of the code that used to give me events:
Note that when i change the wx.Panel to wx.Frame, i start getting the events
again.
#panel for displaying activex flash
class FlashPanel(wx.P anel):
def __init__(self, parent, id=-1):
wx.Panel.__init __(self, parent, id)
self.parent = parent
self.InitWindow Properties()
self.CreateFlas hPlayer()
def InitWindowPrope rties(self):
print 'initializing flash interface...'
self.FlashPlaye rTopSizer = wx.BoxSizer(wx. VERTICAL)
self.SetSizer(s elf.FlashPlayer TopSizer)
self.SetAutoLay out(True)
self.Show(True)
#create the activex flash
def CreateFlashPlay er(self):
FlashModule =
win32com.client .gencache.Ensur eModule('{D27CD B6B-AE6D-11CF-96B8-444553540000}',
0,1,0)
FlashActiveXCla ss = MakeActiveXClas s(FlashModule.S hockwaveFlash,
eventObj=self)
self.FlashPlaye r = FlashActiveXCla ss(self, -1)
self.FlashPlaye rTopSizer.Add(s elf.FlashPlayer , 1, wx.EXPAND)
#callback for when a call is made from flash to python
def OnFlashCall(sel f, *Args): print 'got a callback from flash!'
_______________ _______________ _______________ _______________ _____
Share your latest news with your friends with the Windows Live Spaces
friends module.