示例#1
0
文件: main.py 项目: martinohanlon/mu
 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 {}
示例#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()
示例#3
0
 def show_admin(self, log, settings, theme):
     """
     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()
     admin_box.setup(log, settings, theme)
     admin_box.exec()
     return admin_box.settings()
示例#4
0
文件: main.py 项目: 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()
示例#5
0
文件: main.py 项目: tangjie133/mu1
 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 {}