I'm new to Python, so bear with me.....
I'm calling the Dislin plotting package from python to plot in a wxPython panel. This works OK but the plot gets grayed out when another window is moved over it. There is a Dislin function, sendbf, which updates the graphics window with a pixmap, so I thought I could use wx.EVT_PAINT to invoke this.
So I made a subclass as follows
class refreshablePanel(wx.Panel): def __init__(self, parent, id, pos, size): wx.Panel.__init__(self, parent, id, pos, size) self.Bind(wx.EVT_PAINT, self.OnPaint) def OnPaint(self,event): sendbf
and replaced following line in my frame class
plotpanel = wx.Panel(self, -1,pos=(0,30),size=(1000,700))
plotpanel = refreshablePanel(self, -1,pos=(0,30),size=(1000,700))
But the program just hangs when it comes to plot anything. I'd be very grateful for help with this....