Thanks Alejandro

It works fine after 1 small further change:

I changed:

x = menu.menu_xpos

to be

x = self.mf.winfo_x + menu.menu_xpos

Signature


        Regards



        Paul Malherbe

        Tartan Systems <http://www.tartan.co.za/>


Phone:

        

+27 (0)21-671-1866

Mobile:

        

+27 (0)82-900-5260

Fax:

        

+27 (0)86-262-1838



On 31/05/2013 03:33, Alejandro Autalan wrote:
>
> 2013/5/30 Paul Malherbe <p...@tartan.co.za <mailto:p...@tartan.co.za>>
>
>     Hi
>
>     I hope someone can help me with the following problem:
>
>     I have attached a menu class which is part of a project I have
>     written.
>
>     As my main menu names can be multiple lines I am using the image
>     facility, without text, of Menu. However I cannot get an
>     accelerate key to work.
>
>     Can anyone please assist me?
>     -- 
>
>
>             Regards
>
>
>
>             Paul Malherbe
>
>
> Hi paul,
>
> You can save the image width on the menu, and then calculate the
> position to post the menu. See the attached changes.
> I hope this  helps.
> Regards.
>
>
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss@python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to