Advertisement
k1alo

GCP

Sep 9th, 2024
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.75 KB | None | 0 0
  1. from tkinter import *
  2.  
  3. def check_for_bugs():
  4.     text_into_text("Кнопка работает!!!!!!!!")
  5.  
  6. def text_into_text(s):
  7.     text.insert(1.0, s + "\n")
  8.  
  9.  
  10. root = Tk()
  11. root.title("ПБС")
  12. root.geometry("1920x1080")
  13. root.maxsize(560, 750)
  14. root.minsize(560, 750)
  15.  
  16. title = Label(text="Введите ссылку сайта:", font=('Arial', 14, "bold"))
  17. title.grid(row=1, column=1, pady=25, padx=25)
  18.  
  19. field = Entry(font=('Arial', 14, "bold"))
  20. field.grid(row=1, column=2)
  21.  
  22. button = Button(text="Парсинг", font=('Arial', 14, "bold"), command=check_for_bugs)
  23. button.grid(row=2, column=1, columnspan=2, pady=25)
  24.  
  25. text = Text(font=('Arial', 14, "bold"), width=50)
  26. text.grid(row=3, column=1, columnspan=2, pady=15)
  27.  
  28.  
  29. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement