-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from Gavin-Furtado/Experimenting
GUI file - customtkinter
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import customtkinter as ctk | ||
# from tkinter import simpledialog | ||
|
||
# def get_numbers(): | ||
# num1 = simpledialog.askfloat("Enter Number 1", "Enter the first number:") | ||
# num2 = simpledialog.askfloat("Enter Number 2", "Enter the second number:") | ||
# num3 = simpledialog.askfloat("Enter Number 3", "Enter the third number:") | ||
# if num1 is not None and num2 is not None and num3 is not None: | ||
# print("Numbers entered:", num1, num2, num3) | ||
# else: | ||
# print("User canceled") | ||
|
||
# # Create main window | ||
# root = tk.Tk() | ||
# root.title("Number Input") | ||
|
||
# # Create button to get numbers | ||
# button = tk.Button(root, text="Enter Numbers", command=get_numbers) | ||
# button.pack(pady=10) | ||
|
||
# # Run the application | ||
# root.mainloop() | ||
|
||
ctk.set_appearance_mode('system') | ||
ctk.set_default_color_theme('drak-blue') | ||
|
||
root = ctk.CTk() | ||
root.geometry('600x400') | ||
|
||
def parameters(): | ||
print('Please enter the values') | ||
|
||
frame=ctk.CTkFrame(master=root) | ||
frame.pack(pady=20, padx=60, fill='both', expand=True) | ||
|
||
label = ctk.CTkLabel(master=frame, text='Kalman estimation') | ||
label.pack(pady=12, padx=10) | ||
|
||
number_of_samples = ctk.CTkEntry(master=frame, placeholder_text='Number of Samples') | ||
number_of_samples.pack(pady=12,padx=10) | ||
|
||
button = ctk.CTkButton(master=frame, text='Run Kalman Filter') | ||
number_of_samples.pack(pady=12,padx=10) | ||
|
||
root.mainloop() |