Older stuff/Tests_alias_TKinter_gui.py
def initialize_material_menu(self, container):
        """
        Renders menu to the screen and fills it with material options.
        """
        self.MATERIAL_DICTIONARY = self.get_materials_from_csv_file()
        self.material_names_list = [key for key in self.MATERIAL_DICTIONARY]

        # Defining the OptionMenu for the choice of material
        self.material_choice = tk.StringVar(container)
        self.material_choice.set(self.material_names_list[0]) # default value

        self.material_label = tk.Label(container, text="Material: ", font=("Calibri", 16))
        self.material_label.place(relx=0, rely=0, relheight=0.1, relwidth=0.43)
        self.material_menu = ttk.OptionMenu(container, self.material_choice, *self.material_names_list)
        self.material_menu.place(relx=0.45, rely=0, relheight=0.1, relwidth=0.55)

        Renders menu to the screen and fills it with material options.
        
Renders menu to the screen and fills it with material options.
Renders menu to the screen and fills it with material options .
def initialize_material_menu(self, container):
        self.MATERIAL_DICTIONARY = self.get_materials_from_csv_file()
        self.material_names_list = [key for key in self.MATERIAL_DICTIONARY]
        self.material_choice = tk.StringVar(container)
        self.material_choice.set(self.material_names_list[0]) 
        self.material_label = tk.Label(container, text="Material: ", font=("Calibri", 16))
        self.material_label.place(relx=0, rely=0, relheight=0.1, relwidth=0.43)
        self.material_menu = ttk.OptionMenu(container, self.material_choice, *self.material_names_list)
        self.material_menu.place(relx=0.45, rely=0, relheight=0.1, relwidth=0.55)
def initialize_material_menu ( self , container ) : self . MATERIAL_DICTIONARY = self . get_materials_from_csv_file ( ) self . material_names_list = [ key for key in self . MATERIAL_DICTIONARY ] self . material_choice = tk . StringVar ( container ) self . material_choice . set ( self . material_names_list [ 0 ] ) self . material_label = tk . Label ( container , text = "Material: " , font = ( "Calibri" , 16 ) ) self . material_label . place ( relx = 0 , rely = 0 , relheight = 0.1 , relwidth = 0.43 ) self . material_menu = ttk . OptionMenu ( container , self . material_choice , * self . material_names_list ) self . material_menu . place ( relx = 0.45 , rely = 0 , relheight = 0.1 , relwidth = 0.55 )
Renders menu to the screen and fills it with material options.
Renders menu to the screen and fills it with material options .
"""
        Renders menu to the screen and fills it with material options.
        """ # Defining the OptionMenu for the choice of material # default value
self
container