-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
46 lines (35 loc) · 1.62 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import tkinter as tk
from tkinter import ttk
from dataset_import_window import DatasetImportWindow
from feature_extract_window import FeatureExtractWindow
from feature_selection_window import FeatureSelection
from visualization_dashboard_window import VisualizationDashboard
class MainApplication:
def __init__(self, master):
"""
Initializes a new instance of the MainApplication class.
Parameters
----------
master : object
The root window of the application.
"""
self.master = master
self.notebook = ttk.Notebook(self.master)
self.notebook.pack(fill="both", expand=True)
self.data_tab = tk.Frame(self.notebook)
self.feature_extract_tab = tk.Frame(self.notebook)
self.selection_tab = tk.Frame(self.notebook)
self.visualization_tab = tk.Frame(self.notebook)
self.notebook.add(self.data_tab, text="Dataset Import")
self.notebook.add(self.feature_extract_tab, text="Feature Extraction")
self.notebook.add(self.selection_tab, text="Feature Selection")
self.notebook.add(self.visualization_tab, text="Visualization")
self.data_import = DatasetImportWindow(self.data_tab)
self.feature_ext = FeatureExtractWindow(self.feature_extract_tab, self.data_import)
self.feature_sel = FeatureSelection(self.selection_tab)
self.visualization = VisualizationDashboard(self.visualization_tab)
if __name__ == "__main__":
root = tk.Tk()
root.title("Feature Engineering Tool")
app = MainApplication(root)
root.mainloop()