本文整理汇总了Python中ubuntuuitoolkit.base.get_qmlscene_launch_command函数的典型用法代码示例。如果您正苦于以下问题:Python get_qmlscene_launch_command函数的具体用法?Python get_qmlscene_launch_command怎么用?Python get_qmlscene_launch_command使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_qmlscene_launch_command函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: launch_test_local
def launch_test_local(self):
return self.launch_test_application(
base.get_qmlscene_launch_command(),
self.local_location_qml,
app_type="qt",
emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase,
)
开发者ID:eliwan,项目名称:xxedule,代码行数:7,代码来源:__init__.py
示例2: launch_test_installed
def launch_test_installed(self):
return self.launch_test_application(
base.get_qmlscene_launch_command(),
self.installed_location,
"debug",
app_type='qt',
emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase)
开发者ID:ubuntu-touch-apps,项目名称:music-app,代码行数:7,代码来源:__init__.py
示例3: launch_test_installed
def launch_test_installed(self):
self.app = self.launch_test_application(
base.get_qmlscene_launch_command(),
self.installed_location,
"--desktop_file_hint=/usr/share/applications/"
"project-dashboard.desktop",
app_type='qt',
emulator_base=toolkit_emulators.UbuntuUIToolkitEmulatorBase)
开发者ID:krnekhelesh,项目名称:project-dashboard,代码行数:8,代码来源:__init__.py
示例4: _launch_application_from_desktop
def _launch_application_from_desktop(self):
app_qml_source_location = self._get_app_qml_source_path()
if os.path.exists(app_qml_source_location):
self.app = self.launch_test_application(
base.get_qmlscene_launch_command(),
'-I' + _get_module_include_path(),
app_qml_source_location,
app_type='qt',
emulator_base=emulators.UbuntuUIToolkitEmulatorBase)
else:
raise NotImplementedError(
"On desktop we can't install click packages yet, so we can "
"only run from source.")
开发者ID:liu-xiao-guo,项目名称:sensors,代码行数:13,代码来源:__init__.py
示例5: _start_qml_script
def _start_qml_script(self, script_contents):
"""Launch a qml script."""
qml_path = tempfile.mktemp(suffix='.qml')
open(qml_path, 'w').write(script_contents)
self.addCleanup(os.remove, qml_path)
desktop_file = self._write_test_desktop_file()
return self.launch_test_application(
base.get_qmlscene_launch_command(),
qml_path,
'--desktop_file_hint=%s' % desktop_file,
app_type='qt',
)
开发者ID:Tofee,项目名称:webos-keyboard,代码行数:13,代码来源:test_keyboard.py
示例6: _start_qml_script
def _start_qml_script(self, script_contents):
"""Launch a qml script."""
qml_path = tempfile.mktemp(suffix='.qml')
open(qml_path, 'w').write(script_contents)
self.addCleanup(os.remove, qml_path)
# Use installed desktop file so that Mir allows us to connect with
# our test QML apps
desktop_file = "/usr/share/applications/ubuntu-keyboard-tester.desktop"
return self.launch_test_application(
base.get_qmlscene_launch_command(),
qml_path,
'--desktop_file_hint=%s' % desktop_file,
app_type='qt',
)
开发者ID:cherojeong,项目名称:ubuntu-keyboard,代码行数:15,代码来源:test_keyboard.py
示例7: _launch_application_from_source
def _launch_application_from_source(self, app_qml_source_location):
return self.launch_test_application(
base.get_qmlscene_launch_command(),
app_qml_source_location,
app_type='qt',
emulator_base=ApplicationCustomProxyObject)
开发者ID:UbuntuChina,项目名称:browser,代码行数:6,代码来源:__init__.py
示例8: launch_test_local
def launch_test_local(self):
self.app = self.launch_test_application(
base.get_qmlscene_launch_command(),
self.local_location,
app_type='qt',
emulator_base=toolkit_emulators.UbuntuUIToolkitEmulatorBase)
开发者ID:krnekhelesh,项目名称:project-dashboard,代码行数:6,代码来源:__init__.py
注:本文中的ubuntuuitoolkit.base.get_qmlscene_launch_command函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论