from tkinter import *
def bA_click():
lab.config(text='Молодець!')
def bB_click():
lab.config(text='Ай-ай! Читай!')
root = Tk()
root.geometry("220x110")
root.title("Увага")
lab = Label(root, text='', font='Arial 16', width=15, bg='blue', fg='white')
lab.place(x=20, y=10)
bA = Button(root, text='Натисни мене!', command=bA_click)
bB = Button(root, text='Мене не чіпай!', command=bB_click)
bA.place(x=30, y=50)
bB.place(x=30, y=75)
root.mainloop()
from tkinter import *
def bA_click():
lab.config(text='Молодець!')
def bB_click():
lab.config(text='Ай-ай! Читай!')
root = Tk()
root.geometry("220x110")
root.title("Увага")
lab = Label(root, text='', font='Arial 16', width=15, bg='blue', fg='white')
lab.place(x=20, y=10)
bA = Button(root, text='Натисни мене!', command=bA_click)
bB = Button(root, text='Мене не чіпай!', command=bB_click)
bA.place(x=30, y=50)
bB.place(x=30, y=75)
root.mainloop()