Learning tkinter - a grid problem
MRAB
python at mrabarnett.plus.com
Sun Dec 6 09:19:19 EST 2020
On 2020-12-06 08:11, Sibylle Koczian wrote:
> Am 05.12.2020 um 19:56 schrieb Paulo da Silva:
>> Hi!
>>
>> Why this example does not work?
>>
>> ------------------
>> from tkinter import *
>>
>> root=Tk()
>> root.geometry("400x200")
>> S=Scrollbar(root)
>> T=Text(root)
> ...
>> mainloop()
>> ---------------------
>>
>
> Shouldn't that be
>
> root.mainloop()
>
> ?
>
The function 'mainloop' calls the 'mainloop' method of the root Tk
window created by Tk(), so it does work as-is.
More information about the Python-list
mailing list