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:

tk label

#tkinter,#python,#gui,#programming.


MastodonPeertubeQoto sign up

Donate using Liberapay