943,635 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Marked Solved
  • Views: 559
  • Python RSS
Aug 14th, 2009
0

Cannot See Separator

Expand Post »
Hi,
I cannot see a separator, though it adds spaces between tools. What am I doing wrong?
Here is a code below
python Syntax (Toggle Plain Text)
  1. self.toolbar.AddLabelTool(wx.ID_REDO, "redo", wx.Bitmap("./icons/edit-redo.png"))
  2. self.toolbar.AddSeparator()

Also what is difference between AddLabelTool() and AddSimpleTool() ?
Last edited by evstevemd; Aug 14th, 2009 at 7:56 pm. Reason: add some words
Similar Threads
Reputation Points: 462
Solved Threads: 392
Senior Poster
evstevemd is offline Offline
3,681 posts
since Jun 2007
Aug 15th, 2009
0

Re: Cannot See Separator

I know that AddSeparator() works with AddSimpleTool(). Why are you using AddLabelTool()?
Moderator
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
vegaseat is offline Offline
5,792 posts
since Oct 2004
Aug 17th, 2009
0

Re: Cannot See Separator

Click to Expand / Collapse  Quote originally posted by vegaseat ...
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?
Reputation Points: 462
Solved Threads: 392
Senior Poster
evstevemd is offline Offline
3,681 posts
since Jun 2007
Aug 18th, 2009
0

Re: Cannot See Separator

Something like ...
python Syntax (Toggle Plain Text)
  1. toolbar.AddSimpleTool(wx.ID_SAVE, self.getBMP(wx.ART_FILE_SAVE),
  2. "Save", " Save the text file")
... shows you the text "Save" as a popup hint
Reputation Points: 961
Solved Threads: 211
Nearly a Posting Maven
sneekula is offline Offline
2,413 posts
since Oct 2006
Aug 18th, 2009
0

Re: Cannot See Separator

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!
Reputation Points: 462
Solved Threads: 392
Senior Poster
evstevemd is offline Offline
3,681 posts
since Jun 2007
Aug 18th, 2009
1

Re: Cannot See Separator

How about a blank icon as a spacer? Or maybe just a label with a few spaces?
Last edited by sneekula; Aug 18th, 2009 at 2:25 pm.
Reputation Points: 961
Solved Threads: 211
Nearly a Posting Maven
sneekula is offline Offline
2,413 posts
since Oct 2006
Aug 18th, 2009
0

Re: Cannot See Separator

Click to Expand / Collapse  Quote originally posted by sneekula ...
How about a blank icon as a spacer? ?
That is! Just blank Icon with shape |
Thanks alot
Reputation Points: 462
Solved Threads: 392
Senior Poster
evstevemd is offline Offline
3,681 posts
since Jun 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: Debugging with Python
Next Thread in Python Forum Timeline: TreeCtrl events





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC