Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- class App:
- def __init__(self, root):
- self.screen = root
- def main_screen(self):
- self.screen.geometry("800x600")
- self.screen.title("Helpdesk")
- Label(self.screen, text="Helpdesk 1.0", bg="grey", width="300",
- height="2", font=("calibri", 13,)).pack()
- Label(self.screen, text="IP Adrress", bg="white", width="250",
- height="2", font=("calibri",12,)).pack()
- self.box = Entry(self.screen)
- self.box.pack()
- Button(self.screen, text="Connect", height="2", width="30",
- command=self.connect).pack()
- self.screen.mainloop()
- def connect(self):
- ip_input = self.box.get()
- print(ip_input)
- screen = Tk()
- App(screen).main_screen()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement