Multi-Projector
|
This class creates a graphical user interface for the image projector. More...
Public Member Functions | |
__init__ (self, master) | |
Constructor for the GUI class. | |
control_window (self) | |
Call the function to set up the control window. | |
Public Attributes | |
master = master | |
canvas = tk.Canvas(self.master, bg="black") | |
shared_data = SharedData() | |
commands = Commands(self, self.shared_data) | |
control_window = tk.Toplevel(self.master) | |
overlap = tk.IntVar(value=200) | |
overlapLabel = tk.Label(self.control_window, text='Overlap region Width', font=('calibre', 10, 'bold')) | |
overlapBox = tk.Entry(self.control_window, textvariable=self.overlap) | |
set_overlap_button = tk.Button(self.control_window, text="Set Overlap Region", command=self.commands.set_overlap_region) | |
increase_overlap_button = tk.Button(self.control_window, text="Increase Overlap", command=self.commands.increase_overlap) | |
decrease_overlap_button = tk.Button(self.control_window, text="Decrease Overlap", command=self.commands.decrease_overlap) | |
button_load_left = tk.Button(self.control_window, text="Load Left Image", command=self.commands.load_left_image) | |
button_load_right = tk.Button(self.control_window, text="Load Right Image", command=self.commands.load_right_image) | |
button_show_left = tk.Button(self.control_window, text="Show Left Image", command=self.commands.show_left_image) | |
button_show_right = tk.Button(self.control_window, text="Show Right Image", command=self.commands.show_right_image) | |
button_show_left_original = tk.Button(self.control_window, text="Show Left Original", command=self.commands.show_left_original) | |
button_show_right_original = tk.Button(self.control_window, text="Show Right Original", command=self.commands.show_right_original) | |
save_config = tk.Button(self.control_window, text="Save Config", command=self.shared_data.write_to_config) | |
load_config = tk.Button(self.control_window, text="Load Config", command=self.shared_data.read_from_config) | |
This class creates a graphical user interface for the image projector.
The GUI class is responsible for initializing the main window and setting up the control window. It provides a canvas for displaying images and buttons for loading and displaying images.
Multi-Projector.GUI.GUI.__init__ | ( | self, | |
master ) |
Constructor for the GUI class.
This constructor initializes the main window and sets up the control window.
master | the parent window |
self | the object pointer |
Multi-Projector.GUI.GUI.control_window | ( | self | ) |
Call the function to set up the control window.
A seperate window which allows loading and setting up images and overlap region. It contains buttons and entry fields for loading images, setting the overlap region and control the display of images.
self | the object pointer |