Phoenix and matplotlib

Hi,

In mpl.backend_wx there is:

wx.GetApp().Pending() in the _onDrawIdle method

Is this just not wrapped yet? If not what should it be replaced with?

Werner

Werner wrote:

Hi,

In mpl.backend_wx there is:

wx.GetApp().Pending() in the _onDrawIdle method

Is this just not wrapped yet? If not what should it be replaced with?

loop = wx.EventLoop.GetActive()
loop.Pending()

···

--
Robin Dunn
Software Craftsman

would that work from wxPython 2.8+ or should that only be used with Phoenix?

Thanks
Werner

···

On 2/17/2015 18:02, Robin Dunn wrote:

Werner wrote:

Hi,

In mpl.backend_wx there is:

wx.GetApp().Pending() in the _onDrawIdle method

Is this just not wrapped yet? If not what should it be replaced with?

loop = wx.EventLoop.GetActive()
loop.Pending()

Werner wrote:

···

On 2/17/2015 18:02, Robin Dunn wrote:

Werner wrote:

Hi,

In mpl.backend_wx there is:

wx.GetApp().Pending() in the _onDrawIdle method

Is this just not wrapped yet? If not what should it be replaced with?

loop = wx.EventLoop.GetActive()
loop.Pending()

would that work from wxPython 2.8+ or should that only be used with
Phoenix?

I think it will work okay in Classic 2.9+, but I don't think the wx.EventLoop class was present in 2.8.

--
Robin Dunn
Software Craftsman