tkinter

Is it possible to place widgets off window?

Is it possible to place widgets off window? Question: My question is simple – is it possible to place widgets out of bounds? For example, I want a button to be not on tkinter.Tk, but it will be somewhere else like in the center of monitor. Asked By: ColorfulYoshi || Source Answers: tkinter.Tk are only …

Total answers: 1

python tkinter getting text value from selected radiobutton

python tkinter getting text value from selected radiobutton Question: I have a radiobuttons, for user to select. On each selection it gives to Entry widget some text. Now, I want to get the text value from the radiobutton which is selected. As I remember checkboxes have true or false values, but I used radio buttons …

Total answers: 1

Why is there extra space after the last column in a Tkinter application?

Why is there extra space after the last column in a Tkinter application? Question: I’m trying to build an application in Tkinter. When the user presses a button, I need 3 widgets to appear in certain rows and columns. When the user clicks again, I need 3 more widgets (of the same types) to appear …

Total answers: 1

How to terminate a tkinter loop and use a returned value

How to terminate a tkinter loop and use a returned value Question: I’ve setup a GUI to collect a file location. I then went to terminate the tkinter loop so I can use the submitted value to generate a file. With my current setup below the loop is not terminating. I’ve had a few goes …

Total answers: 1

Python/Tkinter: fine points about super init and self

Python/Tkinter: fine points about super init and self Question: Following is very simple code to create a frame and label as a class: class FrameWithLabel(tk.Frame): def __init__(self, parent): super().__init__(self, parent) self.label = tk.Label(self) I have two questions: In an earlier post, it was explained to me why the super init was required (in this case, …

Total answers: 1

Python Tkinter Images Tearing On Scroll

Python Tkinter Images Tearing On Scroll Question: I’m working on a project to create a GUI application to display images as clickable buttons in Tkinter. I have the functionality completed where the images appear in a scroll-able grid on the GUI. However, when scrolling up or down there is terrible screen tearing with the images. …

Total answers: 3

Issues with tKinter

Issues with tKinter Question: This is my first time ever writing here. Also my first time actually coding. I’ve made a code but have issues running it due to tKinter not seeming to exist, even though I’ve specifically installed python from the official webpage and also ticked the tcl/tk options. When trying to launch my …

Total answers: 1

Customtkinter checkboxes are not starting at the same x axis

Customtkinter checkboxes are not starting at the same x axis Question: I want to make a python todo app with customtkinter. When i create a checkbox which has a longer text everytime something goes wrong and for something they just go away. Here is my code so far: from customtkinter import * from tkinter import …

Total answers: 2

Tkinter error when trying to get StringVar

Tkinter error when trying to get StringVar Question: Im trying to gget used to tkinter on python and when I try to set a StringVar into an entry i just get the following error. File "e:pythonKeymanagerkeylogger.py", line 53, in Pswlog username_entry = tk.Entry(root,stringvarialbe=psw2) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:UsersmatiAppDataLocalProgramsPythonPython311Libtkinter__init__.py", line 3101, in __init__ Widget.__init__(self, master, ‘entry’, cnf, kw) …

Total answers: 1