More tkinter development
So further to yesterdays post
The next step is to add some widgets to our application. It is generally useful to label any items. That way a user knows what purpose an entry box has.
If we take the code block from yesterday and add
#define labeles
box1 = Label(window, text="Entry 1: ")
#place labels
box1.grid(row = 1, column = 1, padx = 5, pady = 5)
before the window.mainloop() statement.
We get:
#tkinter,#python,#gui,#programming.
Mastodon | Peertube | Join Mastodon |
AI statement : Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.