Advertisement
Allena_Gorskaya

Урок 16. Программа 6

Feb 19th, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. #здесь будет код шестой программы
  2. from tkinter import *
  3.  
  4. def hello():
  5.     but.configure(text = "На меня нажали...")
  6.  
  7. root = Tk()
  8. but = Button(root, text = "Нажми меня", bg = 'red', fg = 'white', command = hello)
  9. but.pack(padx = 10, pady = 10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement