use setattr insted of __dict__
This commit is contained in:
parent
d9ee8ffbb3
commit
875840d212
|
@ -64,13 +64,12 @@ class CommandWindow:
|
||||||
self.window.connect('delete-event',
|
self.window.connect('delete-event',
|
||||||
self.on_adhoc_commands_window_delete_event)
|
self.on_adhoc_commands_window_delete_event)
|
||||||
for name in ('restart_button', 'back_button', 'forward_button',
|
for name in ('restart_button', 'back_button', 'forward_button',
|
||||||
'execute_button', 'finish_button', 'close_button',
|
'execute_button', 'finish_button', 'close_button', 'stages_notebook',
|
||||||
'stages_notebook', 'retrieving_commands_stage_vbox',
|
'retrieving_commands_stage_vbox', 'command_list_stage_vbox',
|
||||||
'command_list_stage_vbox', 'command_list_vbox',
|
'command_list_vbox', 'sending_form_stage_vbox',
|
||||||
'sending_form_stage_vbox', 'sending_form_progressbar',
|
'sending_form_progressbar', 'notes_label', 'no_commands_stage_vbox',
|
||||||
'notes_label', 'no_commands_stage_vbox', 'error_stage_vbox',
|
'error_stage_vbox', 'error_description_label'):
|
||||||
'error_description_label'):
|
setattr(self, name, self.xml.get_object(name))
|
||||||
self.__dict__[name] = self.xml.get_object(name)
|
|
||||||
|
|
||||||
self.initiate()
|
self.initiate()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue