本文整理匯總了Python中rose.popen.RosePopener.run_bg方法的典型用法代碼示例。如果您正苦於以下問題:Python RosePopener.run_bg方法的具體用法?Python RosePopener.run_bg怎麽用?Python RosePopener.run_bg使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類rose.popen.RosePopener
的用法示例。
在下文中一共展示了RosePopener.run_bg方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: _launch
# 需要導入模塊: from rose.popen import RosePopener [as 別名]
# 或者: from rose.popen.RosePopener import run_bg [as 別名]
def _launch(name, event_handler=None, run_fg=False, *args, **kwargs):
popen = RosePopener(event_handler)
command = popen.get_cmd(name, *args)
kwargs['stdin'] = sys.stdin
if run_fg:
return popen.run(*command, **kwargs)
popen.run_bg(*command, **kwargs)
示例2: _launch
# 需要導入模塊: from rose.popen import RosePopener [as 別名]
# 或者: from rose.popen.RosePopener import run_bg [as 別名]
def _launch(name, event_handler=None, *args, **kwargs):
popen = RosePopener(event_handler)
command = popen.get_cmd(name, *args)
return popen.run_bg(*command, **kwargs)