Comments on: Python Tkinter Menu Button https://coderslegacy.com/python/python-gui/python-tkinter-menu-button/ Imparting knowledge to the Future Thu, 08 Jan 2026 09:51:41 +0000 hourly 1 By: Michael J. Hill https://coderslegacy.com/python/python-gui/python-tkinter-menu-button/#comment-24165 Thu, 08 Jan 2026 09:51:41 +0000 https://codersrefuge.000webhostapp.com/?page_id=968#comment-24165 ttk in Python 3 is now included inside tkinter. So, for Python 3 tour ‘TTK MenuButton’ example should begin with

from tkinter import *
import tkinter
from tkinter.ttk import Menubutton
……….

]]>
By: Kamal Shalabi https://coderslegacy.com/python/python-gui/python-tkinter-menu-button/#comment-1270 Mon, 11 Apr 2022 10:41:14 +0000 https://codersrefuge.000webhostapp.com/?page_id=968#comment-1270 I wish I find a method to run python program from menu item based on mouse click. I tried but immediately python trying to run the program. Please help.
Also if from menu button is is ok

]]>
By: Siddiqi https://coderslegacy.com/python/python-gui/python-tkinter-menu-button/#comment-817 Mon, 29 Mar 2021 08:36:32 +0000 https://codersrefuge.000webhostapp.com/?page_id=968#comment-817 In reply to Tyler R Parker.

I’m glad to see your feedback. I actually tried it out myself, and realized the issue.

You need to use the newer ttk MenuButton for these newer features. I will now include an example in this article. I’ll also try and work out an article which is dedicated to explaining ttk and it’s uses.

]]>
By: Tyler R Parker https://coderslegacy.com/python/python-gui/python-tkinter-menu-button/#comment-816 Sun, 28 Mar 2021 17:04:16 +0000 https://codersrefuge.000webhostapp.com/?page_id=968#comment-816 Dude, a lot of the parameters listed on this tutorial do not actually work when you write them into the code. For example, textvariable can’t go inside an .add(type, option) to a menu object, and neither can it go into the Menu() widget creation. This isn’t the only tutorial on this website with these mistakes! I have to try out every single parameter and half of them don’t work. Please clean this up!

]]>