def __init__(self, parent): """ Initialise the Console widget """ # Set the prompt, for Dynagen.Console and PyCutExt self.prompt = '=> ' sys.ps1 = '=> ' # Set introduction message self.intro = 'Dynagen management console for Dynamips (adapted for GNS3)\nCopyright (c) 2008-2010 GNS3 Project' # Parent class initialisation try: PyCutExt.__init__(self, None, self.intro, parent=parent) # put our own keywords list self.colorizer.keywords = self.keywords self._Dynagen_Console_init() except Exception,e: sys.stderr.write(e.message)
def __init__(self, parent): """ Initialise the Console widget """ from __main__ import VERSION # Set the prompt, for Dynagen.Console and PyCutExt self.prompt = '=> ' sys.ps1 = '=> ' # Set introduction message self.intro = "GNS3 management console. Running GNS3 version %s.\nCopyright (c) 2006-2013 GNS3 Project." % VERSION # Parent class initialisation try: PyCutExt.__init__(self, None, self.intro, parent=parent) # put our own keywords list self.colorizer.keywords = self.keywords self._Dynagen_Console_init() except Exception, e: sys.stderr.write(e.message)