Example #1
0
def edit():
    """Open a text editor to edit the translations.
    """
    if not getattr(PARSER, 'filename', None):
        raise EnvironmentError("Translation system is not initialized")

    open_text_editor(PARSER.filename)
Example #2
0
 def edit(self):
     """Open a text editor to edit the configuration.
     """
     if open_text_editor(self.filename):
         # Reload config to check if autostart has changed
         self.read(self.filename, encoding="utf-8")
         self.enable_autostart(self.getboolean('GENERAL', 'autostart'))
Example #3
0
 def edit(self):
     """Open a text editor to edit the configuration.
     """
     if open_text_editor(self.filename):
         # Reload config to check if autostart has changed
         self.load()