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
Tag: tkinter
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:
why am I getting this TypeError: () got an unexpected keyword argument error?
I was trying to add tkinter graphics to a small part of my code for some reason and want the output(calculated sum) on window.How did I make this code working please help! my code: getting error: Answer I think you can use Simple_Interest=principal * (interest_rate / 100) * time at line 22. And you should use the “if” statement in
How to get only a corresponding entry box regardless of how many times I change radiobutton?
In this code I want that when I select radiobutton number, only enter a number should appear and same for the other. But the problem is that when I select number after selecting alphabet, it shows both. I need only the selected one and eliminate the other instantly. Answer This is how I would approach this issue: As You can
How to print Dictionary’s items in Tkinter Text Widget?
I have created a program, which allows user to enter usernames of individuals and assign specific number (points) to a particular name. As a result, all data is stored in dictionary like that: When User click on “Results” Button, new window appear and I can see this dictionary printed in terminal. However, now I want to print the data of
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
How to display something else when XPath hasn’t been found and overwriting previous Label
I am trying to create this app so that it finds the streamers views, if it doesn’t find the XPATH I want it to output “Streamer is offline” but it just outputs “Streamer is offline” even for online streamers. Also, when typing a new streamer the label does not overwrite, rather creates a new line. Answer In tkinter we use
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 in the background. Please note I don’t want to know how to background image in tkinter as I am already able to