Items can now be renamed.

This commit is contained in:
Veronica K. B. Olsen
2019-04-24 18:11:38 +02:00
parent 184c33a59e
commit 96943d316a
6 changed files with 34 additions and 5 deletions
+5
View File
@@ -230,6 +230,10 @@ class NWProject():
self.treeOrder = newOrder
return True
def setItemName(self, tHandle, theName):
self.projTree[tHandle].setName(theName)
return
##
# Get Functions
##
@@ -300,6 +304,7 @@ class NWProject():
}
# Other actions available to novel or plot items
validActions[nwItemAction.RENAME] = {}
validActions[nwItemAction.MOVE_UP] = {}
validActions[nwItemAction.MOVE_DOWN] = {}
if tType == nwItemType.ROOT: