Advertisement
Guest User

Untitled

a guest
Jun 1st, 2021
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. class Window():
  2. root = Tk()
  3. sx = root.winfo_screenwidth()
  4. sy = root.winfo_screenheight()
  5. x, y = 650, 650
  6. root.geometry(f"{x}x{y}+{int((sx - x) / 2)}+{int((sy - y) / 2)}")
  7. root.resizable(width=False, height=False)
  8. root["bg"] = "#6441a5"
  9. # root.iconbitmap("icotwitch.ico")
  10. root.mainloop()
  11.  
  12. def created_windows(self):
  13.  
  14. self.label_1 = Label(self.root, text="Логин", font="Arial 20 bold", bg="#6441a5", fg="WHITE", anchor=S)
  15.  
  16. def open_windows(self):
  17.  
  18. self.root.title("Авторизация IRC Twitch")
  19. self.label_1.place(relx=0.5, rely=0.2, anchor=CENTER)
  20.  
  21.  
  22. wind = Window()
  23. wind.created_windows()
  24. wind.open_windows()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement