Allow to edit target profiles via context menu

This commit is contained in:
DarkPhoenix
2019-08-07 10:27:41 +03:00
parent dd5c95d2f2
commit b330f72326
4 changed files with 38 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ class EntityEditor(wx.Panel):
functions that get the list from the source, what to do when user does an action, and how to validate the input.
"""
def __init__(self, parent, entityName):
def __init__(self, parent, entityName, selected=None):
wx.Panel.__init__(self, parent, id=wx.ID_ANY, style=wx.TAB_TRAVERSAL)
self.entityName = entityName
self.validator = None
@@ -70,7 +70,7 @@ class EntityEditor(wx.Panel):
self.SetSizer(self.navSizer)
self.Layout()
self.refreshEntityList()
self.refreshEntityList(selected=selected)
def SetEditorValidator(self, validator=None):
""" Sets validator class (not an instance of the class) """