def unsubscribe_to_messages(observer_function):
 all_output_plugins = om.manager.get_output_plugin_inst()
 for plugin_inst in all_output_plugins:
  if isinstance(plugin_inst, GtkOutput):
   plugin_inst.unsubscribe(observer_function)
   break

def unsubscribe_to_messages ( observer_function ) : all_output_plugins = om . manager . get_output_plugin_inst ( ) for plugin_inst in all_output_plugins : if isinstance ( plugin_inst , GtkOutput ) : plugin_inst . unsubscribe ( observer_function ) break
unsubscribe observer_function to the gtkoutput messages .