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