Discussion:
Phoenix - floatcanvas PieChart
Werner
2014-06-03 13:21:43 UTC
Permalink
Hi,

The Phoenix\samples\floatcanvas\PieChart.py is not working on PY3, I am
getting the following exception:

File "d:\devTools\Phoenix\samples\floatcanvas\PieChart.py", line 8, in
<module>
from wx.lib.floatcanvas.SpecialObjects import PieChart
File
"c:\Python33\Lib\site-packages\wx\lib\floatcanvas\SpecialObjects\__init__.py",
line 7, in <module>
from PieChart import PieChart
File "d:\devTools\Phoenix\samples\floatcanvas\PieChart.py", line 90, in
<module>
F = DrawFrame(None, title="FloatCanvas Demo App", size=(700,700) )
File "d:\devTools\Phoenix\samples\floatcanvas\PieChart.py", line 42, in
__init__
Pie1 = PieChart(N.array((0, 0)), 10, Values, Colors, Scaled=False)

builtins.TypeError: 'module' object is not callable

I am guessing that it is a Py3 import issue, but I can not figure out
how to make it work.

Anyone has a suggestion on how to resolve this?

Werner

P.S.
Why is PieChart not in fc.FloatCanvas like the other objects?
--
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...