contextmenu

lambda in for loop only takes last value

lambda in for loop only takes last value Question: Problemset: Context Menu should show filter variables dynamically and execute a function with parameters defined inside the callback. Generic descriptions show properly, but function call is always executed with last set option. What I have tried: #!/usr/bin/env python import Tkinter as tk import ttk from TkTreectrl …

Total answers: 3

Python3 Tkinter popup menu not closing automatically when clicking elsewhere

Python3 Tkinter popup menu not closing automatically when clicking elsewhere Question: I’m running Python 3.3.3 (and right now I’m on Ubuntu but I also develop on Mac and Windows, which I haven’t yet tested). I have a Treeview object that responds to right click on items and shows a context menu depending on what you …

Total answers: 2

tkinter app adding a right click context menu?

tkinter app adding a right click context menu? Question: I have a python-tkinter gui app that I’ve been trying to find some way to add in some functionality. I was hoping there would be a way to right-click on an item in the app’s listbox area and bring up a context menu. Is tkinter able …

Total answers: 4