(self, options=dbus.Dictionary())
Create a new Window
Create a new Window
Create a new Window
def new_window_cmdline(self, options=dbus.Dictionary()):
        """Create a new Window"""
        dbg('dbus method called: new_window with parameters %s'%(options))
        if options['configjson']:
            dbg(options['configjson'])
            configjson = ConfigJson()
            layoutname = configjson.extend_config(options['configjson'])
            if layoutname and ((not options['layout']) or options['layout'] == 'default'):
                options['layout'] = layoutname
                if not options['profile']:
                    options['profile'] = configjson.get_profile_to_use()

        oldopts = self.terminator.config.options_get()
        oldopts.__dict__ = options
        self.terminator.config.options_set(oldopts)
        self.terminator.create_layout(oldopts.layout)
        self.terminator.layout_done()
def new_window_cmdline ( self , options = dbus . Dictionary ( ) ) : dbg ( 'dbus method called: new_window with parameters %s' % ( options ) ) if options [ 'configjson' ] : dbg ( options [ 'configjson' ] ) configjson = ConfigJson ( ) layoutname = configjson . extend_config ( options [ 'configjson' ] ) if layoutname and ( ( not options [ 'layout' ] ) or options [ 'layout' ] == 'default' ) : options [ 'layout' ] = layoutname if not options [ 'profile' ] : options [ 'profile' ] = configjson . get_profile_to_use ( ) oldopts = self . terminator . config . options_get ( ) oldopts . __dict__ = options self . terminator . config . options_set ( oldopts ) self . terminator . create_layout ( oldopts . layout ) self . terminator . layout_done ( )