def make_configure_tab(self):
        """ initial set up of configure tab"""
        # Setup the choice between single and multicolor
        modeframe = tk.Frame(self.tab_configure)
        self.mode = tk.IntVar()
        singlecolor = tk.Radiobutton(modeframe, text="Single color", variable=self.mode,
                                     value=1, command=lambda: self.disable_multicolor())
        multicolor = tk.Radiobutton(modeframe, text="Three color", variable=self.mode,
                                    value=3, command=lambda: self.disable_singlecolor())
        self.mode.set(3)
        singlecolor.pack(side=tk.LEFT)
        multicolor.pack(side=tk.LEFT)

        updatebutton = tk.Button(master=modeframe, text="Update",
                                 command=self.update_button_action)
        updatebutton.pack(side=tk.RIGHT)
        modeframe.grid(row=0, column=0)
        self.setup_multicolor()
        self.setup_singlecolor()
def make_configure_tab ( self ) : modeframe = tk . Frame ( self . tab_configure ) self . mode = tk . IntVar ( ) singlecolor = tk . Radiobutton ( modeframe , text = "Single color" , variable = self . mode , value = 1 , command = lambda : self . disable_multicolor ( ) ) multicolor = tk . Radiobutton ( modeframe , text = "Three color" , variable = self . mode , value = 3 , command = lambda : self . disable_singlecolor ( ) ) self . mode . set ( 3 ) singlecolor . pack ( side = tk . LEFT ) multicolor . pack ( side = tk . LEFT ) updatebutton = tk . Button ( master = modeframe , text = "Update" , command = self . update_button_action ) updatebutton . pack ( side = tk . RIGHT ) modeframe . grid ( row = 0 , column = 0 ) self . setup_multicolor ( ) self . setup_singlecolor ( )
initial set up of configure tab