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 = < because that j in range(3)>for y in range(3): for x in range(3): e = Entry(root, width=3, bg="white", bd=0, borderwidth=3) e.bind("", lambda x: changeColor(x, e)) e.grid(column=x, row=y) entries = eroot.mainloop()which, in the terminal, developed the output,

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
share
improve this question
monitor
edited might 29 "20 at 23:35
*

Bryan Oakley
322k4141 gold badges463463 silver- badges604604 bronze badges
asked might 29 "20 at 0:50
*

Edward GaremoEdward Garemo
32222 silver badges99 bronze title
1
add a comment |

1 prize 1


active earliest Votes
3
.! 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


re-publishing
improve this price
follow
answered may 29 "20 at 1:05
*

AdamKGAdamKG
12.6k33 yellow badges3838 silver- badges4444 bronze title
1
include a comment |

your Answer


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


Draft saved
Draft discarded

Sign up or log in


sign up using Google
sign up utilizing Facebook
authorize up utilizing Email and also Password
send

Post as a guest


surname
email Required, but never shown


Post together a guest


name
email

Required, however never shown


post Your answer Discard

By clicking “Post her Answer”, girlfriend agree to our regards to service, privacy policy and cookie policy


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
Upcoming events
Featured ~ above Meta
connected
2814
What go ** (double star/asterisk) and * (star/asterisk) carry out for parameters?
6402
What are metaclasses in Python?
11535
What does the "yield" keyword do?
6968
walk Python have actually a ternary conditional operator?
7104
What go if __name__ == "__main__": do?
1267
What go "static" mean in C?
7997
What walk "use strict" perform in JavaScript, and also what is the thinking behind it?
3596
go Python have actually a cable 'contains' substring method?
1448
What is the Python 3 tantamount of "python -m SimpleHTTPServer"
721
What walk -> mean in Python duty definitions?
warm Network questions an ext hot questions

question feed
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.


*

lang-py
stack Overflow
products
company
stack Exchange Network
site architecture / logo © 2021 stack Exchange Inc; user contributions license is granted under cc by-sa. Rev2021.10.18.40487


Stack Overflow works ideal with JavaScript allowed
*

your privacy

By click “Accept all cookies”, you agree ridge Exchange can store cookies on your device and disclose info in accordance through our Cookie Policy.