Initial commit
This commit is contained in:
17
Кнопочки.py
Normal file
17
Кнопочки.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from tkinter import *
|
||||
|
||||
|
||||
def bAaction():
|
||||
print('Спасибо!')
|
||||
|
||||
|
||||
def bBaction():
|
||||
print('Урмяяяяяуу! Мне больно')
|
||||
|
||||
|
||||
window = Tk()
|
||||
buttonA = Button(window, text='Нажми!', command=bAaction)
|
||||
buttonB = Button(window, text='Не нажимай!', command=bBaction)
|
||||
buttonA.pack()
|
||||
buttonB.pack()
|
||||
window.mainloop()
|
||||
Reference in New Issue
Block a user