So say i had a picture as the Tkinter window background and i had button on the window . Could i have the buttons the same coulor as the spot on the picture that the button is currently on? 开发者_运维
I want to write a GUI in Tkinter that accepts a text inputs from the user and stores it in a variable Text; I also want to be able to use this variable later on... Here is s开发者_如何学运维omething i
When a user selects a portion of text in a Tkinter Entry widget it becomes highlighted. However, when the user clicks away from the widget the highlighting disappears.
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
This question already has answers here: Tkinter: AttributeError: NoneType object has no attribute <attribute name>
I am trying to write a VERY simple UI in Python using Tkinter.I have run into a small problem with the StringVar class.The thing is, when I run the python script, I get an error on the line that initi
Starting the Open Book on Python 3.1 import turtle #this yields an error from importing tkinter Script:
I can\'t seem to title my windows. They all have the title \"Tk\".I believ开发者_高级运维e my code is correct, so correct me if this is wrong...
in my Text widget I have here and there many tags, taking care of the text appearance (bold, italic etc).
I got 2 buttons, respectively named \'ButtonA\', \'Bu开发者_如何学PythonttonB\'. I want the program to print \'hello, ButtonA\' and \'hello, ButtonB\' if any button is clicked.