Discussion:
Phoenix - agw.pyprogress
Werner
2014-04-11 14:07:11 UTC
Permalink
Running the test for agw.pyprogress I get exceptions like this on Py33:

The doc has wx.GUIEventLoop, is this maybe just on Py33?

Werner

case.py (c:\Python33\Lib\unittest): 384
function()
test_lib_agw_pyprogress.py (d:\devTools\Phoenix\unittests): 14
agwStyle=wx.PD_APP_MODAL|wx.PD_ELAPSED_TIME)
pyprogress.py
(c:\Python33\Lib\site-packages\wx-3.0.1-msw-phoenix\wx\lib\agw): 535
if not wx.GUIEventLoop().GetActive():
Exception: TypeError: wx._core.GUIEventLoop represents a C++ abstract
class and cannot be instantiated
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Robin Dunn
2014-04-18 00:30:27 UTC
Permalink
Post by Werner
The doc has wx.GUIEventLoop, is this maybe just on Py33?
Werner
case.py (c:\Python33\Lib\unittest): 384
function()
test_lib_agw_pyprogress.py (d:\devTools\Phoenix\unittests): 14
agwStyle=wx.PD_APP_MODAL|wx.PD_ELAPSED_TIME)
pyprogress.py
(c:\Python33\Lib\site-packages\wx-3.0.1-msw-phoenix\wx\lib\agw): 535
Exception: TypeError: wx._core.GUIEventLoop represents a C++ abstract
class and cannot be instantiated
GetActive is a staticmethod, so you can call it with just the class,
like this: wx.EventLoop.GetActive().
--
Robin Dunn
Software Craftsman
http://wxPython.org
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Werner
2014-04-19 13:13:25 UTC
Permalink
Hi Robin,
Post by Robin Dunn
Post by Werner
The doc has wx.GUIEventLoop, is this maybe just on Py33?
Werner
case.py (c:\Python33\Lib\unittest): 384
function()
test_lib_agw_pyprogress.py (d:\devTools\Phoenix\unittests): 14
agwStyle=wx.PD_APP_MODAL|wx.PD_ELAPSED_TIME)
pyprogress.py
(c:\Python33\Lib\site-packages\wx-3.0.1-msw-phoenix\wx\lib\agw): 535
Exception: TypeError: wx._core.GUIEventLoop represents a C++ abstract
class and cannot be instantiated
GetActive is a staticmethod, so you can call it with just the class,
like this: wx.EventLoop.GetActive().
O.K., but still have an issue related to this, now I get this exception
in the test:

case.py (c:\Python33\Lib\unittest): 384
function()
test_lib_agw_pyprogress.py (d:\devTools\Phoenix\unittests): 14
agwStyle=wx.PD_APP_MODAL|wx.PD_ELAPSED_TIME)
pyprogress.py (c:\Python33\Lib\site-packages\wx\lib\agw): 536
self.evtloop = wx.GUIEventLoop()
Exception: TypeError: wx._core.GUIEventLoop represents a C++ abstract
class and cannot be instantiated

If I use just wx.EventLoop() then I get a deprecation warning.

FYI, the code I have now is:
if not wx.EventLoop.GetActive():
self.evtloop = wx.GUIEventLoop()
wx.EventLoop.SetActive(self.evtloop)

and it was:
if not wx.GUIEventLoop().GetActive():
self.evtloop = wx.GUIEventLoop()
wx.GUIEventLoop.SetActive(self.evtloop)

Werner
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...