def button_press():
print("Привет, Узбекистан!")
from tkinter import *
tk = Tk()
tk.geometry("100x100")
tk.title("Мое первое приложение")
b1 = Button(tk, text="Кнопка", command=button_press)
b1.pack()
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
def button_press():
print("Привет, Узбекистан!")
from tkinter import *
tk = Tk()
tk.geometry("100x100")
tk.title("Мое первое приложение")
b1 = Button(tk, text="Кнопка", command=button_press)
b1.pack()