@bdd.when(bdd.parsers.parse('I spawn a new window'))
def invoke_with(quteproc):
 quteproc.log_summary('Create a new window')
 quteproc.send_ipc([], target_arg='window')
 quteproc.wait_for(category='init', module='app', function='_open_startpage', message='Opening startpage')

@ bdd . when ( bdd . parsers . parse ( 'I spawn a new window' ) ) def invoke_with ( quteproc ) : quteproc . log_summary ( 'Create a new window' ) quteproc . send_ipc ( [ ] , target_arg = 'window' ) quteproc . wait_for ( category = 'init' , module = 'app' , function = '_open_startpage' , message = 'Opening startpage' )
spawn a new window via ipc call .