def edit_channel_info(self, new_ch_name, ch_dct):
        """Parent widget calls this whenever the user edits channel info.
        """
        self.ch_name = new_ch_name
        self.dct = ch_dct
        if ch_dct['type'] == 'analog':
            fmter = fmt.green
        else:
            fmter = fmt.blue
        self.ch_name_label.setText(fmt.b(fmter(self.ch_name)))
        self.generateToolTip()
def edit_channel_info ( self , new_ch_name , ch_dct ) : self . ch_name = new_ch_name self . dct = ch_dct if ch_dct [ 'type' ] == 'analog' : fmter = fmt . green else : fmter = fmt . blue self . ch_name_label . setText ( fmt . b ( fmter ( self . ch_name ) ) ) self . generateToolTip ( )
Parent widget calls this whenever the user edits channel info.