icons on menu item / toolbar icons with text

Hi,

I've been trying to imitate what is commonly found on most common Linux
desktop application, namely, icons on menu item and toolbar icons with
text. So far, my search had yielded two things which I need
confirmation:

1. icons on menu item is possible by applying a patch by Alberto
Griggio or downloading the latest from the CVS. The patch would
basically add a SetBitmap method in the wxMenuItem.

2. toolbar icons with text is not possible at the moment. Based on the
API documentation, the 2nd parameter of wxToolBar.AddTool(id,label,...)
is a string label. But this parameter is missing in wxPython. If it is,
will give me the same effect ?

Tks.

AL

Icons on menus are definitely possible. ConflictSolver has them (provided by wxoo.configui) using wxPython 2.3.3, there's no special tricks, just called SetBitmap for the items. As for text items in toolbars, I've never tried that, but I don't think it's currently supported out-of-the-box.

Enjoy,
Mike

Alfredo P. Ricafort wrote:

···

Hi,

I've been trying to imitate what is commonly found on most common Linux
desktop application, namely, icons on menu item and toolbar icons with
text. So far, my search had yielded two things which I need
confirmation:

1. icons on menu item is possible by applying a patch by Alberto
Griggio or downloading the latest from the CVS. The patch would
basically add a SetBitmap method in the wxMenuItem.

2. toolbar icons with text is not possible at the moment. Based on the
API documentation, the 2nd parameter of wxToolBar.AddTool(id,label,...)
is a string label. But this parameter is missing in wxPython. If it is,
will give me the same effect ?

Tks.

AL

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

--
_______________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://members.rogers.com/mcfletch/

Alfredo P. Ricafort wrote:

Hi,

I've been trying to imitate what is commonly found on most common Linux
desktop application, namely, icons on menu item and toolbar icons with
text. So far, my search had yielded two things which I need
confirmation:

1. icons on menu item is possible by applying a patch by Alberto
Griggio or downloading the latest from the CVS. The patch would
basically add a SetBitmap method in the wxMenuItem.

2. toolbar icons with text is not possible at the moment. Based on the
API documentation, the 2nd parameter of wxToolBar.AddTool(id,label,...)
is a string label. But this parameter is missing in wxPython. If it is,
will give me the same effect ?

Look in wxPython/stattool.py at the comments and docstring around AddLabelTool.

···

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

Hi Robin,

Thanks for your input.

However, I find that my copy of stattool.py does not have any comments
at all, and the method AddLabelTool does not appear in that program, nor
in any other programs under wxPython directory.

My version of wxPython 2.3.2.1.

Al

···

On Fri, 2002-11-22 at 05:53, Robin Dunn wrote:

Alfredo P. Ricafort wrote:
> Hi,
>
> I've been trying to imitate what is commonly found on most common Linux
> desktop application, namely, icons on menu item and toolbar icons with
> text. So far, my search had yielded two things which I need
> confirmation:
>
> 1. icons on menu item is possible by applying a patch by Alberto
> Griggio or downloading the latest from the CVS. The patch would
> basically add a SetBitmap method in the wxMenuItem.
>
> 2. toolbar icons with text is not possible at the moment. Based on the
> API documentation, the 2nd parameter of wxToolBar.AddTool(id,label,...)
> is a string label. But this parameter is missing in wxPython. If it is,
> will give me the same effect ?
>

Look in wxPython/stattool.py at the comments and docstring around
AddLabelTool.

--
Alfredo P. Ricafort <alpot@mylinuxsite.com>
Home

"Alfredo P. Ricafort" wrote:

However, I find that my copy of stattool.py does not have any
comments at all, and the method AddLabelTool does not appear
in that program, nor in any other programs under wxPython
directory.

My version of wxPython 2.3.2.1.

I find this comment in stattool.py:
    # The following are the new toolbar Add methods starting
    # with 2.3.3. ...

···

=====
Donnal Walter
Arkansas Children's Hospital

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus � Powerful. Affordable. Sign up now.