Exemplo n.º 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_()
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
 def showPreferences(self):
     import preferences
     dlg = preferences.PreferencesDialog(self)
     dlg.exec_()
     dlg.deleteLater()
Exemplo n.º 4
0
def do_preferences():
    preferences.PreferencesDialog().run()