Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, parent, manager = None, filesOpen = []):
if manager is None:
NodeEditorTemplate.__init__(self, NodeManager(), self, True)
else:
NodeEditorTemplate.__init__(self, manager, self, False)
self._init_ctrls(parent)
self.HtmlFrameOpened = []
icon = wx.Icon(os.path.join(ScriptDirectory,"networkedit.ico"),wx.BITMAP_TYPE_ICO)
self.SetIcon(icon)
if self.ModeSolo:
for filepath in filesOpen:
result = self.Manager.OpenFileInCurrent(os.path.abspath(filepath))
if isinstance(result, (IntType, LongType)):
new_editingpanel = EditingPanel(self.FileOpened, self, self.Manager)
new_editingpanel.SetIndex(result)
self.FileOpened.AddPage(new_editingpanel, "")
else: