from tkinter import * import webbrowser def open_chatgpt ( ) : webbrowser . open ( "https://chat-gpt.org/chat" ) def open_youtube ( ) : webbrowser . open ( "https://www.youtube.com" ) root = Tk ( ) root . title ( "Mr 5opka" ) root . geometry ( "700x300" ) button1 = Button ( root , text = "Нажмите для перехода на Chat GPT" , font = 40 , command = open_chatgpt ) button1 . pack ( side = BOTTOM , pady = 140 ) button2 = Button ( root , text = "Нажмите для перехода на YouTube" , font = 40 , command = open_youtube ) button2 . pack ( side = BOTTOM , pady = 100 ) root . mainloop ( )