#NEWLINE# def _setMode( self , modeStr , chname ) : #NEWLINE# #INDENT# modeStr = modeStr . lower ( ) #NEWLINE# self . w . mode_d [ modeStr ] . set_state ( True ) #NEWLINE# self . w . channel . set_text ( chname ) #NEWLINE# self . switchMode ( chname )