I cannot redirect in tkinter program

My aim is to open on the same window when the button is pressed. But when I run the program, it opens in 2 windows at the same time. I want it to open when the button is pressed. How can I do it? …

tkinter filedialog – how to get directory of selected file?

How can I get folder where is stored file selected from tkinter filedialog? I want make something such this: from tkinter import filedialog as fd filename = fd.askopenfilename() print(filename….

Treeview heading off by one column?

I cannot for the life of me find any post or documentation that explains why the Treeview heading is off by one column from the rest of the data. Even the documentation I found shows this issue in an …

How to assign different permissions to users with different levels in Python?

I’m creating a simple login GUI. I’m trying to make it so that level 3 users can access all requests, level 2 users can only access database and sales related requests, and level 1 users can only …

Tkinter passing parameters

I have 2 .py files in the same project, one called namer and the other called GuiApp In namer is def nameit(name): greetings = f’Hello {name}’ print(greetings) GuiApp holds: from tkinter …

Interaction between button in Python Tkinter [closed]

I’m trying to create a simple Tkinter GUI using Python. The user interface has 3 different buttons: Yes, No and Print. If the user click button Yes then click button Print, a line will appear “…

Add color filter to Tk.Label

I have a tk.Label object with an image (via tk.Label(self.root,image=’image.png’)) and want to add a color filter to it, i.e. make the image more red. How can I do that?

How to get only a corresponding entry box regardless of how many times I change radiobutton?

from tkinter import * win=Tk() var = StringVar() l = Label(win, bg=’white’, width=15) l.grid(row=17,column=1,padx=10, pady=10, sticky=’w’) def print1_selection(): if var.get()==”Number&…

Tkinter opens the Filedialog twice to take the File

I have two functions CheckOs and _get_keyfile as below: 1:CheckOs(without considering Mac) def CheckOs(): if os.name == ‘nt’: return “Windows” return “Linux” 2:…

How to add background image in Tkinter using OOP concept?

I am new to object oriented python programming. Currently I am using Python 3. I want to create an app which has multiple pages. I am able to navigate between pages but find it difficult to add image …