from tkinter income *root = Tk()temp = Nonedef changeColor(event, e): # print("Positional arumgent passed:", x) print("event: ", event.widget) e2 = event.widget if e2<"bg"> == "white": e2<"bg"> = "black" elif e2<"bg"> == "black": e2<"bg"> = "white" an international temp temp = evententries = <
event: .!entry5event: .!entry6event: .!entry8...When i examined the among the event.widgets (stored in temp) in the terminal, i got,
Does anyone know what that is? could you please explain/describe?
python python-3.x tkinter syntax
improve this question
edited might 29 "20 at 23:35
322k4141 gold badges463463 silver- badges604604 bronze badges
asked might 29 "20 at 0:50
Edward GaremoEdward Garemo
32222 silver badges99 bronze title
add a comment |
1 prize 1
active earliest Votes
.! is not a basic Python thing, it"s just just how the tkinter library surname widgets that room not otherwise provided a name. Entry comes from here, due to the fact that this widget is an entry class. The exclamation point & number suffix are assigned here, maybe being offered a ! so that auto-generated, class-name-derived widget name don"t overlap with those assigned by the user. And the leading duration is exactly how widgets are called when lock don"t have actually a called parent; if they did, it would be ..
You are watching: What does exclamation point mean in python
improve this price
answered may 29 "20 at 1:05
12.6k33 yellow badges3838 silver- badges4444 bronze title
include a comment |
Thanks for contributing an answer to stack Overflow!Please be sure to answer the question. Provide details and share your research!
But avoid …Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with recommendations or an individual experience.
To learn more, check out our advice on writing great answers.
See more: Frosted Chocolate Chip Cookie Dough Pop Tarts Discontinued Pop
Sign up or log in
sign up using Google
sign up utilizing Facebook
authorize up utilizing Email and also Password
Post as a guest
email Required, but never shown
Post together a guest
Required, however never shown
post Your answer Discard
Not the price you're spring for? Browse various other questions tagged python python-3.x tkinter syntax or ask your very own question.
The Overflow Blog
Featured ~ above Meta
What go ** (double star/asterisk) and * (star/asterisk) carry out for parameters?
What are metaclasses in Python?
What does the "yield" keyword do?
walk Python have actually a ternary conditional operator?
What go if __name__ == "__main__": do?
What go "static" mean in C?
go Python have actually a cable 'contains' substring method?
What is the Python 3 tantamount of "python -m SimpleHTTPServer"
What walk -> mean in Python duty definitions?
warm Network questions an ext hot questions
i ordered it to RSS
question feed To i ordered it to this RSS feed, copy and also paste this URL into your RSS reader.
stack Exchange Network
site architecture / logo © 2021 stack Exchange Inc; user contributions license is granted under cc by-sa. Rev2021.10.18.40487