menubar

Why the menubar is not showing in my tkinter application?

Why the menubar is not showing in my tkinter application? Question: Here is the code: # -*- coding: utf-8 -*- import tkinter as tk class Application(tk.Tk): def __init__(self): super(self.__class__, self).__init__() self.title(‘test’) self.geometry(‘300×350′) self.setup_ui() def setup_ui(self): menubar = tk.Menu(self) menuFile = tk.Menu(menubar) menubar.add_cascade(label=’File’, menu=menuFile) menuFile.add_command(label=’Exit’, command=self.destroy) if __name__ == ‘__main__’: app = Application() app.mainloop() After i …

Total answers: 1

Can I change the menubar text after press a button? (Python, tkinter)

Can I change the menubar text after press a button? (Python, tkinter) Question: I started with python a month ago and I’m practicing different stuff. Right now I’m building a calculator and I’m adding a day/night mode switch on menubar. That was easy. But I’d like my menubar to show only "day mode" option when …

Total answers: 2