def __init__(self, master):
        """
        master -- containing widget
        """
        tk.LabelFrame.__init__(self, master, text='Instrument setup',
                               padx=10, pady=10)

        # Define all buttons
        width = 17
        # expert
        self.ngcReset = NGCReset(self, width)
        self.ngcStandby = NGCStandby(self, width)
        self.ngcOnline = NGCOnline(self, width)
        self.ngcOff = NGCOff(self, width)
        self.cldcOff = CLDCOff(self, width)
        self.cldcOn = CLDCOn(self, width)
        self.seqStart = SeqStart(self, width)
        self.seqStop = SeqStop(self, width)
        # non-expert
        self.powerOn = PowerOn(self, width)
        self.powerOff = PowerOff(self, width)
        self.all_buttons = [self.ngcReset, self.ngcStandby, self.ngcOnline,
                            self.ngcOff, self.cldcOn, self.cldcOff,
                            self.powerOn, self.powerOff, self.seqStart, self.seqStop]
        # set which buttons are presented and where they go
        self.setExpertLevel()
def __init__ ( self , master ) : tk . LabelFrame . __init__ ( self , master , text = 'Instrument setup' , padx = 10 , pady = 10 ) width = 17 self . ngcReset = NGCReset ( self , width ) self . ngcStandby = NGCStandby ( self , width ) self . ngcOnline = NGCOnline ( self , width ) self . ngcOff = NGCOff ( self , width ) self . cldcOff = CLDCOff ( self , width ) self . cldcOn = CLDCOn ( self , width ) self . seqStart = SeqStart ( self , width ) self . seqStop = SeqStop ( self , width ) self . powerOn = PowerOn ( self , width ) self . powerOff = PowerOff ( self , width ) self . all_buttons = [ self . ngcReset , self . ngcStandby , self . ngcOnline , self . ngcOff , self . cldcOn , self . cldcOff , self . powerOn , self . powerOff , self . seqStart , self . seqStop ] self . setExpertLevel ( )
master -- containing widget