Python Gui Masterclass - Ultimate Tkinter
# Adding commands to File Menu file_menu.add_command(label="New", command=lambda: new_file(text_area)) file_menu.add_command(label="Open", command=lambda: open_file(text_area, root)) file_menu.add_separator() file_menu.add_command(label="Exit", command=root.quit)
Instead of tk.Button , you use ttk.Button . ultimate tkinter python gui masterclass
We need a main window and a text area ( Text widget). To make the text area scrollable, we need to attach a Scrollbar . # Adding commands to File Menu file_menu
| If you want... | Get this text... | |---|---| | | Python GUI Programming with Tkinter (Moore) | | A free, complete reference | Tkinter 8.5 Reference (Shipman) - PDF | | Solutions to specific advanced problems | Tkinter GUI Application Development Cookbook | | A quick memory jogger | RealPython Tkinter Cheat Sheet (PDF) | | If you want
: A more complex application that introduces the Tkinter canvas, allowing users to draw simple pictures.