you can add widgets to the new window the first argument when you create the widget needs to be the name of the windowlike below new_window toplevel(label label(new_windowtext'hi 'label grid(row= column= pack there is an alternative to grid called pack it is not as versatile as gridbut there are some places where it is useful it uses an argument called sidewhich allows you to specify four locations for your widgetstopbottomleftand right there are two useful optional argumentsfill and expand here is an example button =button(text'hi 'button pack(side=topfill=xbutton =button(text'hi 'button pack(side=bottomthe fill option causes the widget to fill up the available space given to it it can be either xy or both the expand option is used to allow the widget to expand when its window is resized to enable ituse expand=yes note you can use pack for some framesand grid for othersjust don' mix pack and grid within the same frameor tkinter won' know quite what to do stringvar in section we saw how to tie tkinter variablecalled an intvarto check button or radio button tkinter has another type of variable called stringvar that holds strings this type of variable can be used to change the text in label or button or in some other widgets we already know how to change text using the configure methodand stringvar provides another way to do it to tie widget to stringvaruse the textvariable option of the widget stringvar has get and set methodsjust like an intvarand whenever you set the variableany widgets that are tied to it are automatically updated