change font/size on wxToolbook tool labels?

Is it possible to change the font of the label of each “tool” in a wxToolbook? wxNotebook allows SetFont(), but when I try that on the wxToolbook it does not change the label of each tool, only the font of the textual objects which are its children.

Anyone know how to do this?

Thank you,
Che

C M wrote:

Is it possible to change the font of the label of each "tool" in a wxToolbook? wxNotebook allows SetFont(), but when I try that on the wxToolbook it does not change the label of each tool, only the font of the textual objects which are its children.

The wx.Toolbook uses a normal wx.ToolBar for selection of pages, so if the platform supports changing the font in a native toolbar (I don't think they all do) then you can do it that way. Just get the toolbar from the toolbook with GetToolBar() and call its SetFont method.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!