Discussion:
[Tkinter-discuss] No menu displayed.
François laforgia
2013-01-10 10:04:15 UTC
Permalink
Hi all,

I'm a beginner in Tkinter development and I have a problem w/ the menus
under Mac OS.
I would like to build a GUI w/ menus but when I run the program on MAC OS
Lion everything is ok but no menus are displayed in my window. I tried to
run the same program w/ the same Python version on a Ubuntu 12.04 and this
time the menus are correctly displayed.
I also noticed that IDLE doesn't display the menus either.
I'm not stuck as I can continue to code on my Linux but at the end this
program will have to run mainly on Mac OS and at this time I can't provide
it as it is.
I had a look at the known issue on the Python website but nothing seems
related to this problem. It is also possible I do something wrong but I
can't find what. Please can you help me to troubleshoot this issue ?


My configuration is the following:

Mac Book Pro 2.4GHz Core i5 / 4GB RAM
Mac OS X 10.7.5
Python 2.7.3 (the one provided w/ Mac OS)
I believe TK is ver. 8.5 but I don't know how to verify it.

I attached to this email the test case I used to confirm the issue.

Best regards,
Francois.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Menutk2.py
Type: text/x-python-script
Size: 1842 bytes
Desc: Menutk2.py
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20130110/5492cc04/attachment.bin>
Kevin Walzer
2013-01-10 11:57:59 UTC
Permalink
Post by François laforgia
Hi all,
I'm a beginner in Tkinter development and I have a problem w/ the menus
under Mac OS.
I would like to build a GUI w/ menus but when I run the program on MAC OS
Lion everything is ok but no menus are displayed in my window. I tried to
run the same program w/ the same Python version on a Ubuntu 12.04 and this
time the menus are correctly displayed.
I also noticed that IDLE doesn't display the menus either.
I'm not stuck as I can continue to code on my Linux but at the end this
program will have to run mainly on Mac OS and at this time I can't provide
it as it is.
I had a look at the known issue on the Python website but nothing seems
related to this problem. It is also possible I do something wrong but I
can't find what. Please can you help me to troubleshoot this issue ?
On MacOS, the menubar is at the top of the screen, not attached to a
window. I see the menu fine on my system in your code sample.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
François laforgia
2013-01-10 13:53:51 UTC
Permalink
Hi Kevin,

Thanks.
I was so sure that the menus will be displayed in the window that I forgot
to look at the screen bar.
Shame on me !

Best regards,
Francois.
Post by Kevin Walzer
Post by François laforgia
Hi all,
I'm a beginner in Tkinter development and I have a problem w/ the menus
under Mac OS.
I would like to build a GUI w/ menus but when I run the program on MAC
OS
Lion everything is ok but no menus are displayed in my window. I tried
to
run the same program w/ the same Python version on a Ubuntu 12.04 and
this
time the menus are correctly displayed.
I also noticed that IDLE doesn't display the menus either.
I'm not stuck as I can continue to code on my Linux but at the end this
program will have to run mainly on Mac OS and at this time I can't
provide
it as it is.
I had a look at the known issue on the Python website but nothing seems
related to this problem. It is also possible I do something wrong but I
can't find what. Please can you help me to troubleshoot this issue ?
On MacOS, the menubar is at the top of the screen, not attached to a
window. I see the menu fine on my system in your code sample.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss at python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
Loading...