File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ # ui/interface.py
2+
3+ import tkinter as tk
4+ from tkinter import messagebox
5+
6+ def launch_ui ():
7+ """
8+ Launches the user interface.
9+ """
10+ def on_submit ():
11+ user_input = entry .get ()
12+ if not user_input :
13+ messagebox .showwarning ("Input Error" , "Please enter a command." )
14+ else :
15+ # Process the user input
16+ messagebox .showinfo ("Success" , f"Command received: { user_input } " )
17+
18+ root = tk .Tk ()
19+ root .title ("Quantum Fusion Interface" )
20+
21+ label = tk .Label (root , text = "Enter your command:" )
22+ label .pack (pady = 10 )
23+
24+ entry = tk .Entry (root , width = 50 )
25+ entry .pack (pady = 5 )
26+
27+ submit_button = tk .Button (root , text = "Submit" , command = on_submit )
28+ submit_button .pack (pady = 10 )
29+
30+ root .mainloop ()
You can’t perform that action at this time.
0 commit comments