diff options
Diffstat (limited to '')
-rw-r--r-- | src/dialogs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dialogs.py b/src/dialogs.py index 99abcbb..30a2870 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -156,9 +156,9 @@ class KPAnimationPresetChooser(QtGui.QDialog): -def getTextDialog(): +def getTextDialog(title, label, existingText=''): - text, ok = QtGui.QInputDialog.getText(KP.mainWindow, "Choose Preset Name", "Preset name:") + text, ok = QtGui.QInputDialog.getText(KP.mainWindow, title, label, QtGui.QLineEdit.Normal, existingText) print text if ok and text != '': |