Thank you for your response! Below is some code that works for me in Python 
2.5.2 on Windows XP but will not work in Python 2.5.2 on Mac OSX 10.4 or 
10.5. On the mac, I get a window appearing, but no menu bar. Given that it 
works on a PC, I'm thinking I need a different Python distro for my 
macs. Thanks very very much!
from Tkinter import *root = Tk()
def hello():    print "hello!"
# create a toplevel menumenubar = Menu(root)menubar.add_command(label="Hello!", 
command=hello)menubar.add_command(label="Quit!", command=root.quit)
# display the menuroot.config(menu=menubar)mainloop()

--- On Mon, 3/29/10, tkinter-discuss-requ...@python.org 
<tkinter-discuss-requ...@python.org> wrote:

From: tkinter-discuss-requ...@python.org <tkinter-discuss-requ...@python.org>
Subject: Tkinter-discuss Digest, Vol 73, Issue 5
To: tkinter-discuss@python.org
Received: Monday, March 29, 2010, 6:00 AM

Send Tkinter-discuss mailing list submissions to
    tkinter-discuss@python.org

To subscribe or unsubscribe via the World Wide Web, visit
    http://mail.python.org/mailman/listinfo/tkinter-discuss
or, via email, send a message with subject or body 'help' to
    tkinter-discuss-requ...@python.org

You can reach the person managing the list at
    tkinter-discuss-ow...@python.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tkinter-discuss digest..."


Today's Topics:

   1. macPython, menubar won't display,    new windows will not
      display widgets (Joe Barfett)
   2. Re: macPython, menubar won't display, new windows will not
      display widgets (Kevin Walzer)


----------------------------------------------------------------------

Message: 1
Date: Sun, 28 Mar 2010 09:55:29 -0700 (PDT)
From: Joe Barfett <joebarf...@yahoo.ca>
To: tkinter-discuss@python.org
Subject: [Tkinter-discuss] macPython, menubar won't display,    new
    windows will not display widgets
Message-ID: <470422.35265...@web59402.mail.ac4.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"

Hello, 
I've had problems getting menus to appear in my Tkinter applications using 
python 2.5.2 and Mac OSX tiger and leopard.
I've extensively searched for help and found only this link:
http://www.learningpython.com/2006/03/27/using-menus-in-tkinter/
someone else has had the same problem but no solution is posted. 
Additionally, I find that if I make a new window with toplevel, widgets on the 
window will not display immediately, but will after the window is refreshed. 
With Tile so easily available, I really don't want to invest in learning 
another GUI toolkit for python. Tkinter solves all my needs (I'm a scientific 
programmer) and really I just want to make a more friendly and user oriented 
scientific application.
Thanks if you can help! I can post source code if needed, but I'm hoping 
someone has just heard of the problem before and can point me in the right 
direction. Cheers from Canada!
joe ? 




      __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.python.org/pipermail/tkinter-discuss/attachments/20100328/c8567489/attachment-0001.html>

------------------------------

Message: 2
Date: Sun, 28 Mar 2010 13:28:21 -0400
From: Kevin Walzer <k...@codebykevin.com>
To: tkinter-discuss@python.org
Subject: Re: [Tkinter-discuss] macPython, menubar won't display, new
    windows will not display widgets
Message-ID: <4baf91b5.5000...@codebykevin.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 3/28/10 12:55 PM, Joe Barfett wrote:

> Thanks if you can help! I can post source code if needed, but I'm hoping
> someone has just heard of the problem before and can point me in the
> right direction. Cheers from Canada!
>


There are no systematic issues with Tkinter on OS X that I'm aware of: 
if a menu isn't displaying there's probably an issue with your code. 
Please post a code sample to help us reproduce the problem.

--Kevin

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com


------------------------------

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


End of Tkinter-discuss Digest, Vol 73, Issue 5
**********************************************



      __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr! 

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

Reply via email to