tkinter

How to pass values from a linked menu item in python tkinter?

How to pass values from a linked menu item in python tkinter? Question: How to create a variable to hold and pass label of the item selected from a drop down menu? While I’m here, may I ask how to send a second (spare) variable into a function in tkinter at the same time. I’m …

Total answers: 3

Pyglet working only with installed fonts?

Pyglet working only with installed fonts? Question: This program uses Tkinter and I’m trying to display text using a custom font that is not installed on my Windows machine, since other users certainly will not have this font installed as well.. I’ve tried to use pyglet but it only works when the font is installed.. …

Total answers: 1

trying python tkinter creating widgets with classes (frame)

trying python tkinter creating widgets with classes (frame) Question: I am trying to create custom widgets with classes. I have one class, called CustomWidgets inside it, I have method for creating Frame object, then configure its side key with config method, but it gives an error. code; from tkinter import * from tkinter import ttk …

Total answers: 1

Tkinter treeview not being placed at the right coordinates

Tkinter treeview not being placed at the right coordinates Question: I have placed a treeview widget in my tk window with .place() but it is being placed in the wrong coordinates, around 100 pixels off in both x and y, verging closer to 0. The size of the treeview is also affected, making it smaller …

Total answers: 1

Why does the parameter "disabledwidth" of a tkinter canvas rectangle not work?

Why does the parameter "disabledwidth" of a tkinter canvas rectangle not work? Question: I want the outline of a rectangle in a canvas to get a bigger width, when the rectangle is in state "disabled". Therefore I use the parameter "disabledwidth=4". But when the rectangle is in state "disabled", the outline has still a width …

Total answers: 1

Clock does not run

Clock does not run Question: I would like to programm a simple clock with python and tkinter indicating local and utc time in the same window. As you can see on the screenshoot, first clock local time is not running, but the second clock below utc time is running well. At the moment I can …

Total answers: 1