本文整理汇总了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,
)
示例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)
示例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)
示例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.")
示例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',
)
示例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',
)
示例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)
示例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)