[Tkinter-discuss] menu bug

Lion Kimbro lionkimbro at gmail.com
Tue Feb 9 21:44:44 CET 2010


  I have no idea, but would making the image slightly larger, (perhaps
workable programmatically,) work as a work-around?


On Mon, Feb 8, 2010 at 5:38 PM, Nemes Andrei <teh_sh_meister at yahoo.com>wrote:

> Hi!
> I am trying to make a menu that uses small icons as well as text, but when
> I open the main menu, the icon in the pull down menu is not correctly
> displayed until I hoover over it. Could someone please be so kind to tell me
> what's wrong and how can I solve this. Image with error attached (or
> viewable at http://img11.imageshack.us/img11/9429/bugft.jpg)
> Thank you.
>
> menu code:
>         #building icon set
>         self.info=PhotoImage(file="gui/information.gif")
>
>         #menu init
>         self.myMenu=Menu(self)
>
>         #help menu
>         self.menu_help=Menu(self.myMenu, tearoff=0)
>         self.menu_help.add_command(label="Credits ", command=mda)
>         self.menu_help.add_command(label="About "+name, image=self.info,
> compound="left", command=mda)
>         self.myMenu.add_cascade(label="Help", menu=self.menu_help)
>
>         #show menu bar
>         self.config(menu=self.myMenu)
>
> Kind regards,
> Andrei Nemes
>
>
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20100209/20d43cd3/attachment.htm>


More information about the Tkinter-discuss mailing list