Skip to content
Advertisement

Tag: tkinter

Tkinter passing parameters

I have 2 .py files in the same project, one called namer and the other called GuiApp In namer is GuiApp holds: I don’t understand why when i type something into txt, it is not returned as part of the nameit function. Any ideas please as im new to Tkinter? Answer When the command of a button has parenthesis, it

Interaction between button in Python Tkinter [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question 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

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? Answer You can modify the image with PIL, and save it as a new file. In Tkinter, you can use PhotoImage(file=”file.png”) to use the image as a button:

Show command prompt in tkinter window

How do I make a program where I can run a piece of code, then show the results? So if I make my program run python –version it should print something like Python 3.8.3 (depends on what version you are on), but you get the point PS: I know this has been posted before, but they don’t work for me

Tkinter opens the Filedialog twice to take the File

I have two functions CheckOs and _get_keyfile as below: 1:CheckOs(without considering Mac) 2:_get_keyfile the problem is when ever _get_keyfile Function is executed it opens the File Dialog to select the file but opens again after I select the file and the file is selected after the second time. The problem only persists on Windows on Linux its working fine. I

Advertisement