diff --git a/Tst/tst/tst.py b/Tst/tst/tst.py index d2ef80d2722b720cd7ee2f69471ee57ab0ac4987..5b692897a9e836ac00610a6e125ded65f20a2504 100755 --- a/Tst/tst/tst.py +++ b/Tst/tst/tst.py @@ -947,14 +947,13 @@ class TstAppWindow(Gtk.ApplicationWindow): for pth in file_list: pth = os.path.abspath(pth) try: - self.logger.info('Opening in the CCS-Editor the file: {}'.format(pth)) + self.logger.info('Opening file {} in the CCS-Editor'.format(pth)) editor.Functions('open_file', pth) except dbus.exceptions.DBusException as e: message = 'Could not find the file: {}'.format(pth) - self.logger.error('Could not find the file: {}'.format(pth)) + self.logger.error(message) self.logger.exception(e) - self.add_info_bar(message_type=Gtk.MessageType.ERROR, - message=message) + self.add_info_bar(message_type=Gtk.MessageType.ERROR, message=message) def on_generate_products_message_dialog(self, paths): """ @@ -1027,20 +1026,18 @@ class TstAppWindow(Gtk.ApplicationWindow): self.logger.error(message) self.logger.exception(e) # add a info bar message that the starting of the CCS-Editor failed. - self.add_info_bar(message_type=Gtk.MessageType.ERROR, - message=message) + self.add_info_bar(message_type=Gtk.MessageType.ERROR, message=message) def on_start_ccs_editor(self, *args): try: self.logger.info('Starting CCS-Editor application.') cfl.start_editor() except Exception as e: - message = 'Could not start CCS-Editor. Further information probably can be found in the tst.log file.' + message = 'Could not start CCS-Editor.' self.logger.error(message) self.logger.exception(e) # add a info bar message that the starting of the CCS-Editor failed. - self.add_info_bar(message_type=Gtk.MessageType.ERROR, - message=message) + self.add_info_bar(message_type=Gtk.MessageType.ERROR, message=message) def on_apply_css(self, *args): style_provider = Gtk.CssProvider() diff --git a/Tst/tst/view.py b/Tst/tst/view.py index 333ecef3bb9b7514c6a33cb7373b1b5af98c28a4..8973e3f727ab2b65db93bad9e31f95fc1253f236 100644 --- a/Tst/tst/view.py +++ b/Tst/tst/view.py @@ -287,7 +287,7 @@ class Board(Gtk.Box): if not found: msg = 'Given Pre-Condition Name could not be found/loaded' self.logger.warning(msg) - self.app.add_info_bar(message_type=Gtk.MessageType.INFO, message=msg) + # self.app.add_info_bar(message_type=Gtk.MessageType.INFO, message=msg) self.on_precon_changed(self.precon_selection) # set the post-condition name @@ -300,7 +300,7 @@ class Board(Gtk.Box): if not found: msg = 'Given Post-Condition Name could not be found/loaded' self.logger.warning(msg) - self.app.add_info_bar(message_type=Gtk.MessageType.INFO, message=msg) + # self.app.add_info_bar(message_type=Gtk.MessageType.INFO, message=msg) self.on_postcon_changed(self.precon_selection) # Set the test comment @@ -309,8 +309,6 @@ class Board(Gtk.Box): # Set the Locked STep numeration self.text_meta_data_test_is_locked.set_active(self.model.primary_counter_locked) - - def collapse_all_steps(self, button): """ Close all expander of the steps """ steps = self.grid.get_children()