[ wxwindows-Bugs-1581621 ] DrawCheckMark() changes DC's Pen

SourceForge.net noreply at sourceforge.net
Fri Oct 20 17:10:23 PDT 2006


Bugs item #1581621, was opened at 2006-10-20 19:10
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1581621&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxPython specific
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: israel orange (iorange)
Assigned to: Robin Dunn (robind)
Summary: DrawCheckMark() changes DC's Pen

Initial Comment:
Sample:

self.buffer=wx.EmptyBitmap(w,h)
dc=wx.BufferedDC(wx.ClientDC(self), self.buffer)
dc.SetPen(wx.RED_PEN)
dc.DrawLine(x,y,x2,y2)
#I'm red!
dc.DrawCheckMark(x,y,width,height)
#I'm black!
dc.DrawLine(x,y,x2,y2)
#I'm black!
print dc.GetPen().GetColour()
#prints (0, 0, 0)
dc.SetPen(wx.RED_PEN)
print dc.GetPen().GetColour()
#prints (255, 0, 0)
dc.DrawCheckMarkRect(wx.RectPP((x,y),(x2,y2)))
#black again!
print dc.GetPen().GetColour()
#prints (0, 0, 0)

Doesn't matter if Windows or Mac.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1581621&group_id=9863




More information about the wx-dev mailing list