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, [email protected] 
<[email protected]> wrote:

From: [email protected] <[email protected]>
Subject: Tkinter-discuss Digest, Vol 73, Issue 5
To: [email protected]
Received: Monday, March 29, 2010, 6:00 AM

Send Tkinter-discuss mailing list submissions to
    [email protected]

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
    [email protected]

You can reach the person managing the list at
    [email protected]

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 <[email protected]>
To: [email protected]
Subject: [Tkinter-discuss] macPython, menubar won't display,    new
    windows will not display widgets
Message-ID: <[email protected]>
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 <[email protected]>
To: [email protected]
Subject: Re: [Tkinter-discuss] macPython, menubar won't display, new
    windows will not display widgets
Message-ID: <[email protected]>
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
[email protected]
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
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to