954,160 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Cannot See Separator

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() ?

evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
 

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

vegaseat
DaniWeb's Hypocrite
Moderator
5,976 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,416
 
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?

evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
 

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

sneekula
Nearly a Posting Maven
2,427 posts since Oct 2006
Reputation Points: 961
Solved Threads: 212
 

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!

evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
 

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

sneekula
Nearly a Posting Maven
2,427 posts since Oct 2006
Reputation Points: 961
Solved Threads: 212
 
How about a blank icon as a spacer? ?


That is! Just blank Icon with shape |
Thanks alot

evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You