Remove unused variable.
This commit is contained in:
@ -359,7 +359,7 @@ class InstConfigData:
|
||||
for imp in self.imp_dict[opt_desc['imptype']]:
|
||||
yield imp
|
||||
|
||||
def cf_statechange(self, cfg_id, new_state, udat=None):
|
||||
def cf_statechange(self, cfg_id, new_state):
|
||||
"""Change the given instrument configuration state."""
|
||||
self.configuration_dict[cfg_id]['enabled'] = new_state
|
||||
|
||||
@ -498,12 +498,12 @@ class InstConfigManager:
|
||||
user_data=opt)
|
||||
return rb_lw
|
||||
|
||||
def cf_statechange(self, button, new_state, udat=None):
|
||||
def cf_statechange(self, button, new_state):
|
||||
"""Update option list when an instrument configuration is selected and
|
||||
notify InstConfigData object.
|
||||
"""
|
||||
cfg_id = button.get_label()
|
||||
self.cf_dat.cf_statechange(cfg_id, new_state, udat)
|
||||
self.cf_dat.cf_statechange(cfg_id, new_state)
|
||||
cascade = self.cf_dat.configuration_dict[cfg_id]['cascade_list']
|
||||
if new_state == True:
|
||||
for opt in self.cf_dat.opt_dict.keys():
|
||||
@ -518,8 +518,8 @@ class InstConfigManager:
|
||||
self.opt_lw.button_dict[opt].set_state(True)
|
||||
|
||||
DBG.msg(self.cf_msg_index,
|
||||
'InstConfigManager:cf_statechange({0},{1},{2}),cascade={3}'.format(
|
||||
cfg_id, new_state, udat, cascade))
|
||||
'InstConfigManager:cf_statechange({0},{1}):cascade={2}'.format(
|
||||
cfg_id, new_state, cascade))
|
||||
self.cf_msg_index = (self.cf_msg_index - 7) % 2 + 8
|
||||
return
|
||||
|
||||
|
Reference in New Issue
Block a user