Beispiel #1
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()
Beispiel #2
0
Datei: main.py Projekt: 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()
Beispiel #3
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 {}