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.  The * import does not turn method into module functions.

--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to