Object has no attribute 'Color', after Debian update

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Object has no attribute 'Color', after Debian update

Beppe

hi to everybody,

I have update my debian distro from 6 to 8 and now all calls to wx.Color return exceptions as

Traceback (most recent call last):
  File "/home/bc/biochemiae/frames/patients.py", line 216, in OnItemActivated
    obj = patient.Dialog(parent = self)
  File "/home/bc/biochemiae/frames/patient.py", line 37, in __init__
    self.txCode.SetForegroundColour(wx.Color(0, 0, 255))
AttributeError: 'module' object has no attribute 'Color'

this is wx version

bc@hal9000:~/biochemiae$ python
Python 2.7.9 (default, Mar  1 2015, 12:57:24)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.version()
'3.0.1.1 gtk2 (classic)'

someone has the same problem?

p.s.
I' have installed Mate, but I get this problem even on Xfce

regards
beppe

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Object has no attribute 'Color', after Debian update

Scott Talbert
On Thu, 4 Aug 2016, beppe wrote:

>
> hi to everybody,
>
> I have update my debian distro from 6 to 8 and now all calls to wx.Color
> return exceptions as
>
> Traceback (most recent call last):
>   File "/home/bc/biochemiae/frames/patients.py", line 216, in
> OnItemActivated
>     obj = patient.Dialog(parent = self)
>   File "/home/bc/biochemiae/frames/patient.py", line 37, in __init__
>     self.txCode.SetForegroundColour(wx.Color(0, 0, 255))
> AttributeError: 'module' object has no attribute 'Color'
Try wx.Colour() instead.