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()
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.
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()
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
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
À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
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
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
-
-
-
-
-
-
-
-
-
-