Skip to content
Snippets Groups Projects
Commit 875840d2 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

use setattr insted of __dict__

parent d9ee8ffb
No related branches found
No related tags found
No related merge requests found
......@@ -64,13 +64,12 @@ class CommandWindow:
self.window.connect('delete-event',
self.on_adhoc_commands_window_delete_event)
for name in ('restart_button', 'back_button', 'forward_button',
'execute_button', 'finish_button', 'close_button',
'stages_notebook', 'retrieving_commands_stage_vbox',
'command_list_stage_vbox', 'command_list_vbox',
'sending_form_stage_vbox', 'sending_form_progressbar',
'notes_label', 'no_commands_stage_vbox', 'error_stage_vbox',
'error_description_label'):
self.__dict__[name] = self.xml.get_object(name)
'execute_button', 'finish_button', 'close_button', 'stages_notebook',
'retrieving_commands_stage_vbox', 'command_list_stage_vbox',
'command_list_vbox', 'sending_form_stage_vbox',
'sending_form_progressbar', 'notes_label', 'no_commands_stage_vbox',
'error_stage_vbox', 'error_description_label'):
setattr(self, name, self.xml.get_object(name))
self.initiate()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment