Jérôme Laheurte
unread,Apr 10, 2021, 10:20:03 AM4/10/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wxpytho...@googlegroups.com
I’m in the process of porting an application to python3/wx4 and just found why a bunch of my tests fail:
Python 3.8.5 (default, Jan 27 2021, 15:41:15)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.RED
wx.Colour(-1, -1, -1, 255)
>>> wx.BLACK
wx.Colour(-1, -1, -1, 255)
>>> wx.BLUE
wx.Colour(-1, -1, -1, 255)
>>> wx.RED == None
True
>>> wx.RED == wx.BLACK
True
>>>
It seems like all predefined colours have the same « null colour » value ?
Ubuntu 20.04, wxPython 4.1.1 (installed through pip in a venv)
Best regards
Jérôme Laheurte