Skip to content

Commit c1ae193

Browse files
authored
Create ui_interface.py
1 parent c3c7b70 commit c1ae193

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

ui_interface.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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()

0 commit comments

Comments
 (0)