Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Window():
- root = Tk()
- sx = root.winfo_screenwidth()
- sy = root.winfo_screenheight()
- x, y = 650, 650
- root.geometry(f"{x}x{y}+{int((sx - x) / 2)}+{int((sy - y) / 2)}")
- root.resizable(width=False, height=False)
- root["bg"] = "#6441a5"
- # root.iconbitmap("icotwitch.ico")
- root.mainloop()
- def created_windows(self):
- self.label_1 = Label(self.root, text="Логин", font="Arial 20 bold", bg="#6441a5", fg="WHITE", anchor=S)
- def open_windows(self):
- self.root.title("Авторизация IRC Twitch")
- self.label_1.place(relx=0.5, rely=0.2, anchor=CENTER)
- wind = Window()
- wind.created_windows()
- wind.open_windows()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement