ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> wxpython-users
wxpython-users
Re: [wxpython-users] What's going on with wx.Pen()?
by Christopher Barker other posts by this author
May 8 2008 2:47PM messages near this date
Re: [wxpython-users] What's going on with wx.Pen()? | RE: [wxpython-users] What's going on with wx.Pen()?
Marlin Rowley wrote:
>  the pen to be bright red.  And I want it to be that way ALL the time!  
>  For some reason, when I change the background color of my brush to 
>  something OTHER than black, I get a different color.  Why?

       dc.SetLogicalFunction(wx.XOR)


means that colors are bitwise XOR'd with the background color. It looks 
like you may have borrowed this from my (or someone else's) rubber band 
box code. It's there so that you can draw a visible line over any other 
color. If you always draw red, you won't be able to see it if the 
background is red.

However, if you do want that, get rid of that line.

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@[...].gov
_______________________________________________
wxpython-users mailing list
wxpython-users@[...].org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Thread:
Marlin Rowley
Tim Roberts
Marlin Rowley
Tim Roberts
Marlin Rowley
Christopher Barker
Marlin Rowley
Christopher Barker
Christopher Barker
Marlin Rowley

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved