Maik Hertha <[EMAIL PROTECTED]> writes:

> Unfortunately  the itemfactory  interprets  the  char  '_'  as
> accelerator marker vor the following char.
> So my question is. How could I avoid the interpretation of the char
> '_' (underscore) as accelecation marker in the  menu item ('DLName
> "%s"') ?

Double the underscore and the menu should display a single underscore
instead of creating an accelerator.  The replace() method should work:

        dl.replace('_', '__')

This is mentioned in the GTK+ documentation under the
gtk_label_new_with_mnemonic() function.  Of course this probably isn't
the first place someone would look, although there is a pointer from
the docs on gtk_menu_item_new_with_mnemonic():

http://developer.gnome.org/doc/API/2.0/gtk/GtkLabel.html#gtk-label-new-with-mnemonic
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to