def __init__(self, project=None, plot=None, extrakw=None, **kw):

        """
        Initalization consists of:

            - save keyword arguments as self.options
            - merge in any extra keywords assigned via BackendRegistry.register
            - assign `self.project` and `self.plot`
            - call self.connect()

        Do not overwrite this method, use self.init() for custom
        initialization!
        """

        SPObject.__init__(self)

        self.sig_register("closed")
        self.cblist = []

        # set options and merge keywords from BackendRegistry.register
        self.options = dict(kw)
        if extrakw:
            self.options.update(extrakw)

        # call functions for custom initialization
        self.init()  # custom initialization
        self.connect()

        self.project = None
        self.plot = None

        self.set(project, plot)
    def __init__(self, obj, parent):
        SPObject.__init__(self)
        
        self.painters = {}
        self.parent = parent
        self.obj = obj

        if hasattr(self, 'init'):
            self.init()
    def __init__(self):
        SPObject.__init__(self)        
        globals.app = self
        self._project = None
        
        # init signals
        self.sig_register('write-config')

        # TODO:
        self.sig_register('update::project')
        
        # TODO: update::recent_files
        self.sig_register('update-recent-files')

        # init path handler
        self.path = PathHandler()       
        
        # init config file
        self.eConfig = config.read_configfile(self, self.path.config)
                   
        # init recent files
        self.recent_files = []
        self.read_recentfiles()
        self.sig_connect("write-config", self.write_config_recentfiles)

        # read in existing templates
        self.read_templates()
        self.sig_connect("write-config", self.write_config_templates)

        # init() is a good place for initialization of derived class
        self.plugins = {}
        self.load_plugins()
        self.init()        

        # After everything is initialized, we can set up the project.
        self.set_project(None)
        
        # welcome message
        self.status_msg("%s %s" % (version.NAME, version.VERSION))
 def __init__(self, **kwargs):
     SPObject.__init__(self, **kwargs)
 def __init__(self, **kwargs):
     SPObject.__init__(self, **kwargs)
     gtk.DrawingArea.__init__(self)
     self.connect('expose_event', self.expose)