|
Hi All,
Here is a piece of code for drawing a line using DC. When I create the Pen,
and use the dc.SelectObject, the following error occours.
if
win32con.WM_ERASEBKGND:
dc = win32ui.CreateDCFromHandle(self.windowHWnd) win32gui.GetClientRect(self.windowHWnd)
hBrush = win32ui.CreateBrush(win32con.PS_SOLID, win32con.BLACK_BRUSH,
0)
dc.FillRect(selectedProxy.location, hBrush)
hPen = win32ui.CreatePen(win32con.PS_SOLID, 5,
win32con.BLACK_PEN)
print hPen, "hPen"
hOldPen = dc.SelectObject(hPen)
The Error Message is:
hOldPen = dc.SelectObject(hPen)
win32ui: Select pen object failed Thanks for your Help.
Gop.
|
<<tech.gif>>
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
