Esempio n. 1
0
 def show_admin(self, log):
     """
     Display the administrative dialog with referenced content of the log
     and settings. Return a dictionary of the settings that may have been
     changed by the admin dialog.
     """
     admin_box = AdminDialog(self)
     admin_box.setup(log)
     admin_box.exec()
Esempio n. 2
0
 def show_admin(self, log, envars, theme):
     """
     Display the administrivite dialog with referenced content of the log
     and envars. Return the raw string representation of the environment
     variables to be used whenever a (regular) Python script is run.
     """
     admin_box = AdminDialog()
     admin_box.setup(log, envars, theme)
     admin_box.exec()
     return admin_box.envars()
Esempio n. 3
0
File: main.py Progetto: opt9/mu
 def show_admin(self, log, settings):
     """
     Display the administrative dialog with referenced content of the log
     and settings. Return a dictionary of the settings that may have been
     changed by the admin dialog.
     """
     admin_box = AdminDialog(self)
     admin_box.setup(log, settings)
     admin_box.exec()
     return admin_box.settings()
Esempio n. 4
0
File: main.py Progetto: willingc/mu
 def show_admin(self, log, envars, theme):
     """
     Display the administrivite dialog with referenced content of the log
     and envars. Return the raw string representation of the environment
     variables to be used whenever a (regular) Python script is run.
     """
     admin_box = AdminDialog()
     admin_box.setup(log, envars, theme)
     admin_box.exec()
     return admin_box.envars()
Esempio n. 5
0
 def show_admin(self, log, settings, packages):
     """
     Display the administrative dialog with referenced content of the log
     and settings. Return a dictionary of the settings that may have been
     changed by the admin dialog.
     """
     admin_box = AdminDialog(self)
     admin_box.setup(log, settings, packages)
     result = admin_box.exec()
     if result:
         return admin_box.settings()
     else:
         return {}