Michael Clerx
Michael Clerx

Reputation: 3056

Can I add a label to a single tool in a wxPython toolbar?

Does anyone know if it's possible to add a label to a single tool in a wx.ToolBar? I've found a global setting but no option to set it for a single tool.

Upvotes: 0

Views: 184

Answers (1)

Mike Driscoll
Mike Driscoll

Reputation: 33071

I have a feeling that's a limitation of the native widget. It's an all or nothing affair. You could make the label a part of the image on the tool item though. Or you might be able to do it with FlatMenu which has a Toolbar widget equivalent that's written in pure Python, so you can hack it. See the wxPython demo for an example of its API.

Upvotes: 1

Related Questions