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()
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()
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()
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 {}