Python Forum
[Tkinter] tkinter menubar not showing on mac ventura
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] tkinter menubar not showing on mac ventura
#1
i bought a macbook air m2, ventura os 13.0.1, python 3.11. The tkinter menubar function does not produce the menubar line.
This is the code:

from tkinter import *
top = Tk()
def hello():
     print("hello!")
# create a toplevel menu
menubar = Menu(top)
menubar.add_command(label="Hello!", command=hello)
menubar.add_command(label="Quit!", command=top.quit)
# display the menu
top.config(menu=menubar)
top.mainloop()
On windows 11, python 3 the code works perfectly.
In the forums I have not found any indications on this problem.
Yoriz write Dec-17-2022, 02:39 PM:
Please post all code, output and errors (in their entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Reply


Messages In This Thread
tkinter menubar not showing on mac ventura - by taras - Dec-17-2022, 02:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] MenuBar hidden when new window opens john8888 5 1,489 Sep-14-2022, 02:32 PM
Last Post: john8888
  tkinter showing image in button rwahdan 3 5,720 Jun-16-2021, 06:08 AM
Last Post: Yoriz
  [Tkinter] Tkinter Textbox only showing one character Xylianth 1 2,220 Jan-29-2021, 02:59 AM
Last Post: Xylianth
  [Tkinter] Entry box not showing 2 decimal places Chuck_Norwich 3 5,792 Apr-24-2020, 05:28 PM
Last Post: deanhystad
  [PyQt] Drag and Move window from menubar WBPYTHON 3 4,827 Apr-03-2020, 06:15 PM
Last Post: deanhystad
  [Tkinter] showing results in TKInter as Vertical List diegoctn 4 3,276 Jan-18-2019, 02:33 PM
Last Post: diegoctn
  [Tkinter] Tkinter optionmenu child menu position showing 0,0 thatguy14 2 4,708 Jun-15-2018, 10:42 AM
Last Post: thatguy14

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020