Re: Learning tkinter - a grid problem

2020-12-07 Thread Terry Reedy
On 12/6/2020 5:59 AM, Terry Reedy wrote: On 12/6/2020 3:11 AM, Sibylle Koczian wrote: Am 05.12.2020 um 19:56 schrieb Paulo da Silva: Why this example does not work? -- from tkinter import * root=Tk() root.geometry("400x200") S=Scrollbar(root) T=Text(root) ... mainloop()

Re: Learning tkinter - a grid problem

2020-12-06 Thread Terry Reedy
On 12/6/2020 3:11 AM, Sibylle Koczian wrote: Am 05.12.2020 um 19:56 schrieb Paulo da Silva: 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() ? Yes.

Re: Learning tkinter - a grid problem

2020-12-06 Thread Sibylle Koczian
Am 06.12.2020 um 15:19 schrieb MRAB: 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()

Re: Learning tkinter - a grid problem

2020-12-06 Thread MRAB
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

Re: Learning tkinter - a grid problem

2020-12-06 Thread Sibylle Koczian
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() ? -- https://mail.python

Re: Learning tkinter - a grid problem

2020-12-05 Thread Paulo da Silva
Às 20:20 de 05/12/20, MRAB escreveu: > On 2020-12-05 18:56, Paulo da Silva wrote: >> Hi! >> >> Why this example does not work? >> > There are a few bits of configuration missing: > >> -- >> from tkinter import * >> >> root=Tk() >> root.geometry("400x200") > > Add: > > root.grid_r

Re: Learning tkinter - a grid problem

2020-12-05 Thread MRAB
On 2020-12-05 18:56, Paulo da Silva wrote: Hi! Why this example does not work? There are a few bits of configuration missing: -- from tkinter import * root=Tk() root.geometry("400x200") Add: root.grid_rowconfigure(0, weight=1) root.grid_columnconfigure(0, weight=1) root.g

Learning tkinter - a grid problem

2020-12-05 Thread Paulo da Silva
Hi! Why this example does not work? -- from tkinter import * root=Tk() root.geometry("400x200") S=Scrollbar(root) T=Text(root) T.grid(row=0,column=0) S.grid(row=0,column=1) S.config(command=T.yview) T.config(yscrollcommand=S.set) txt="""This is a very big text - - - - - - - - - -