-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeature_selection_window.py
50 lines (38 loc) · 1.13 KB
/
feature_selection_window.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
47
48
49
50
import tkinter as tk
class FeatureSelection:
"""A class that creates a UI for selecting a feature"""
def __init__(self, master):
"""
Initializes the FeatureSelection object.
:param master: The parent widget.
"""
self.master = master
self.load_model_button = tk.Button(
master, text="Load Model", command=self.load_model
)
self.load_model_button.pack()
self.load_image_button = tk.Button(
master, text="Load Image", command=self.load_image
)
self.load_image_button.pack()
self.select_feature_button = tk.Button(
master, text="Select Feature", command=self.select_feature, state="disabled"
)
self.select_feature_button.pack()
self.canvas = tk.Canvas(master, width=500, height=500)
self.canvas.pack()
def load_model(self):
"""
Loads a model
"""
pass
def load_image(self):
"""
Loads an image
"""
pass
def select_feature(self):
"""
Selects a feature
"""
pass