Predefined colours in wxPython
Jérôme Laheurte <[email protected]> Sat, 10 Apr 2021 16:19:57 +0200
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
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 -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/C1F622A4-71FB-45CD-8915-FB57B892D3BF%40gmail.com.