Exemple #1
0
def edit_preferences():
    import preferences
    # TODO: make it possible to run Preferences without a Main Window.
    # Currently the Keyboard Shortcuts section needs the mainwindow to get
    # the current shortcuts.
    w = mainwindow()
    w.newDocument()
    preferences.PreferencesDialog(w).exec_()
    def show_preferences(self):

        "Show the preferences dialog."

        if KConfigDialog.showDialog("Preferences dialog"):
            return
        else:
            dialog = preferences.PreferencesDialog(self, "Preferences dialog",
                                                   self.preferences)
            dialog.show()
            dialog.settingsChanged.connect(self.reload_config)
Exemple #3
0
 def showPreferences(self):
     import preferences
     dlg = preferences.PreferencesDialog(self)
     dlg.exec_()
     dlg.deleteLater()
Exemple #4
0
def do_preferences():
    preferences.PreferencesDialog().run()