[Tkinter-discuss] a couple of mac menu problems

Mark Summerfield list at qtrac.plus.com
Mon Jun 18 10:23:06 CEST 2012


Hi Kevin,

On Fri, 15 Jun 2012 09:45:58 -0400
Kevin Walzer <kw at codebykevin.com> wrote:
> Hi Mark,
[snip]
> This is how I set up my help menu is one of my Python apps:
> 
> 	        self.createcommand('::tk::mac::ShowHelp', self.runHelp)
> 
>         self.helpmenu = Menu(self.mb, name='_help')
>          self.mb.add_cascade(label='Help', menu=self.helpmenu)
>          self.helpmenu.add_command(label='Phynchronicity Help', 
> command=self.runHelp)
>          self.helpmenu.add_command(label='Contact Code by Kevin', 
> command=self.getHelp)
>          self.helpmenu.add_command(label='Web Site', 
> command=self.getWebSite)
>          self.helpmenu.add_command(label='User Forum', 
> command=self.getUserForum)
>          self.helpmenu.add_command(label='Newsletter', 
> command=self.getNewsletter)
> 
> Hope this helps,

Yes, it was very helpful -- thanks!

-- 
Mark Summerfield, Qtrac Ltd, www.qtrac.eu
    C++, Python, Qt, PyQt - training and consultancy
        "Programming in Python 3" - ISBN 0321680561
            http://www.qtrac.eu/py3book.html


More information about the Tkinter-discuss mailing list