My Project
Loading...
Searching...
No Matches
project_final_commented.GUI.GUI Class Reference

Public Member Functions

 __init__ (self, master)
 This class creates a graphical user interface for the image projector.
 
 control_window (self)
 

Public Attributes

 master = master
 Constructor for the GUI class.
 
 canvas = tk.Canvas(self.master, bg="black")
 
 shared_data = SharedData()
 
 commands = Commands(self, self.shared_data)
 
 control_window = tk.Toplevel(self.master)
 Call the function to set up the control window.
 
 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)
 

Constructor & Destructor Documentation

◆ __init__()

project_final_commented.GUI.GUI.__init__ ( self,
master )

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.

Member Data Documentation

◆ control_window

project_final_commented.GUI.GUI.control_window = tk.Toplevel(self.master)

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.

Parameters
selfthe object pointer

◆ master

project_final_commented.GUI.GUI.master = master

Constructor for the GUI class.

This constructor initializes the main window and sets up the control window.

Parameters
masterthe parent window
selfthe object pointer
Returns
None

The documentation for this class was generated from the following file: