Hi,
I cannot see a separator, though it adds spaces between tools. What am I doing wrong?
Here is a code below

self.toolbar.AddLabelTool(wx.ID_REDO, "redo", wx.Bitmap("./icons/edit-redo.png"))
        self.toolbar.AddSeparator()

Also what is difference between AddLabelTool() and AddSimpleTool() ?

Recommended Answers

All 6 Replies

I know that AddSeparator() works with AddSimpleTool(). Why are you using AddLabelTool()?

I know that AddSeparator() works with AddSimpleTool(). Why are you using AddLabelTool()?

Because I want to show both text and Icon and I cannot do it with AddSimpleTool(). If there is a way of showing both text and icon, I will be happy to change from Label tool.

Just addition Question, is there any similar method with AddLabel Tool?

Something like ...

toolbar.AddSimpleTool(wx.ID_SAVE, self.getBMP(wx.ART_FILE_SAVE),
            "Save", " Save the text file")

... shows you the text "Save" as a popup hint

Thanks a lot. I have searched a lot and it seems with AddSimpleTool no permanent text like AddLabelTool is possible. meanwhile No separator can be seen with AddLabelTool as it is in AddSimpleTool.

That is a big dilemma!

How about a blank icon as a spacer? Or maybe just a label with a few spaces?

commented: Blank icon? Great Idea! +7

How about a blank icon as a spacer? ?

That is! Just blank Icon with shape |
Thanks alot

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.