Text
Text
Text
class IPHostApp:
def __init__(self, root):
self.root = root
self.root.title("Tkinter Example")
self.entry_var = tk.StringVar()
self.textbox = tk.Entry(root, textvariable=self.entry_var, width=30)
self.textbox.insert(0, "Enter IP/Host here")
def connect(self):
self.show_info("Success", "green")
def disconnect(self):
self.show_info("Error", "red")
if __name__ == "__main__":
root = tk.Tk()
app = IPHostApp(root)
root.mainloop()