Re: Color tuple wxPython issue?

Neil Hughes <[email protected]>
Newsgroups gmane.comp.python.pythoncard
Message-ID <[email protected]>
On 05/09/2007 07:15, Kevin Altis wrote:
> When the long 4 tuple is passed as an arg is where the actual  
> exception occurs under wxPython earlier than 2.7.1.1. You can try  
> this out in the shell yourself. Just run a sample like minimal.py  
> with the shell using an older wxPython...
> 
> python minimal.py -s
> 
> then type something like:
> 
>  >>> comp.field1.SetForegroundColour((0, 0, 0, 255))
> 
> to see if it throws an exception.

Yes...

File "C:\Python23\lib\site-packages\wx\_core.py", line 6982, in 
SetForegroundColour
     return _core_.Window_SetForegroundColour(*args, **kwargs)
TypeError: Expected a wxColour object or a string containing a colour 
name or '#RRGGBB'.

-- 
Neil Hughes

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.