putting a button in the tab area of a wxNotebook

The netscape browser has a little button next to all of its tabs that lets
you open a new tab for more browsing. Is is possible to place a button like
that next to all of the tabs in a wxNotebook. If so then how is this done?

Stephen Emslie

···

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

Code which does exactly that has been posted to this list a few weeks
ago, search the list.

···

-----Original Message-----
From: stephene@sjsoft.com [mailto:stephene@sjsoft.com]
Sent: Wednesday, March 03, 2004 1:04 AM
To: wxpython-users@lists.wxwindows.org
Subject: [wxPython-users] putting a button in the tab area of a
wxNotebook

The netscape browser has a little button next to all of its tabs that
lets you open a new tab for more browsing. Is is possible to place a
button like that next to all of the tabs in a wxNotebook. If so then how
is this done?

Stephen Emslie

--------------------------------------------------------------------
mail2web - Check your email from the web at http://mail2web.com/ .

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

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.