summaryrefslogtreecommitdiff
path: root/src/dialogs.py
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-23 05:05:15 +0200
committerTreeki <treeki@gmail.com>2012-09-23 05:05:15 +0200
commitbb12ddfb35aedf9bdabe522fbc718b876addc106 (patch)
tree00765c9205f0e45eaa54aee892129590d473f8d9 /src/dialogs.py
parentff48bf230ecea27d85d1d65796e70087fb0223cf (diff)
downloadkoopatlas-bb12ddfb35aedf9bdabe522fbc718b876addc106.tar.gz
koopatlas-bb12ddfb35aedf9bdabe522fbc718b876addc106.zip
added editing of background names
Diffstat (limited to '')
-rw-r--r--src/dialogs.py4
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 != '':