Ответ:
from tkinter import *
root = Tk()
root.geometry("300x100")
root.title("Реклама")
s = "Вивчайте мову Python!"
lab = Label(root, text=s, font=('Comic Sans MS', 18, 'bold'), width=20, height = 40, bg = 'blue', fg = 'yellow')
lab. pack()
def clock():
global s
s = s[1:] + s[0]
lab.config(text=s)
root.after(200, clock)
clock()
root.mainloop()
Объяснение:
фото
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
from tkinter import *
root = Tk()
root.geometry("300x100")
root.title("Реклама")
s = "Вивчайте мову Python!"
lab = Label(root, text=s, font=('Comic Sans MS', 18, 'bold'), width=20, height = 40, bg = 'blue', fg = 'yellow')
lab. pack()
def clock():
global s
s = s[1:] + s[0]
lab.config(text=s)
root.after(200, clock)
clock()
root.mainloop()
Объяснение:
фото