• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python QtCore.qDebug函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中python_qt_binding.QtCore.qDebug函数的典型用法代码示例。如果您正苦于以下问题:Python qDebug函数的具体用法?Python qDebug怎么用?Python qDebug使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了qDebug函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: _close_application_shutdown_callback

 def _close_application_shutdown_callback(self, instance_id=None):
     if instance_id is not None:
         self._number_of_ongoing_calls = self._number_of_ongoing_calls - 1
     if self._number_of_ongoing_calls == 0:
         qDebug('PluginManager.close_application() completed')
         self._number_of_ongoing_calls = None
         self._close_application_signal()
开发者ID:abhat91,项目名称:ros_osx,代码行数:7,代码来源:plugin_manager.py


示例2: _save_settings_callback

 def _save_settings_callback(self, instance_id=None):
     if instance_id is not None:
         self._number_of_ongoing_calls = self._number_of_ongoing_calls - 1
     if self._number_of_ongoing_calls == 0:
         qDebug('PluginManager.save_settings() completed')
         self._number_of_ongoing_calls = None
         self.save_settings_completed_signal.emit()
开发者ID:abhat91,项目名称:ros_osx,代码行数:7,代码来源:plugin_manager.py


示例3: _switch_perspective

    def _switch_perspective(self, name, settings_changed, save_before, without_plugin_changes=False):
        # convert from unicode
        name = str(name.replace('/', '__'))

        qDebug('PerspectiveManager.switch_perspective() switching to perspective "%s"' % name)
        if self._current_perspective is not None and self._menu_manager is not None:
            self._menu_manager.set_item_checked(self._current_perspective, False)
            self._menu_manager.set_item_disabled(self._current_perspective, False)

        # create perspective if necessary
        if name not in self.perspectives:
            self._create_perspective(name, clone_perspective=False)

        # update current perspective
        self._current_perspective = name
        if self._menu_manager is not None:
            self._menu_manager.set_item_checked(self._current_perspective, True)
            self._menu_manager.set_item_disabled(self._current_perspective, True)
        if not self._current_perspective.startswith(self.HIDDEN_PREFIX):
            self._settings_proxy.set_value('', 'current-perspective', self._current_perspective)
        self._perspective_settings = self._get_perspective_settings(self._current_perspective)

        # emit signals
        self.perspective_changed_signal.emit(self._current_perspective.lstrip(self.HIDDEN_PREFIX))
        if settings_changed:
            if not without_plugin_changes:
                self.restore_settings_signal.emit(self._global_settings, self._perspective_settings)
            else:
                self.restore_settings_without_plugin_changes_signal.emit(self._global_settings, self._perspective_settings)
开发者ID:abhat91,项目名称:ros_osx,代码行数:29,代码来源:perspective_manager.py


示例4: _init_node

 def _init_node(self):
     # initialize node once
     if not self._node_initialized:
         name = 'rqt_gui_py_node_%d' % os.getpid()
         qDebug('RosPyPluginProvider._init_node() initialize ROS node "%s"' % name)
         rospy.init_node(name, disable_signals=True)
         self._node_initialized = True
开发者ID:mylxiaoyi,项目名称:ros_distro,代码行数:7,代码来源:ros_py_plugin_provider.py


示例5: load_plugin

 def load_plugin(self, plugin_id, serial_number=None, argv=None):
     qDebug('PluginManager.load_plugin(%s, %s)' % (str(plugin_id), str(serial_number) if serial_number is not None else ''))
     # save state of top-level widgets
     self.plugins_about_to_change_signal.emit()
     if serial_number is None:
         serial_number = self._next_serial_number(plugin_id)
     instance_id = PluginInstanceId(plugin_id, serial_number)
     self._load_plugin_load(instance_id, self._load_plugin_restore, argv)
开发者ID:abhat91,项目名称:ros_osx,代码行数:8,代码来源:plugin_manager.py


示例6: emit_save_settings_completed

 def emit_save_settings_completed(self):
     qDebug('PluginHandler.emit_save_settings_completed()')
     self._call_method_on_all_dock_widgets('save_settings', self.__instance_settings)
     self.__instance_settings = None
     if self.__callback is not None:
         callback = self.__callback
         self.__callback = None
         callback(self._instance_id)
开发者ID:ethz-asl,项目名称:qt_gui_core,代码行数:8,代码来源:plugin_handler.py


示例7: save_settings

 def save_settings(self, global_settings, perspective_settings):
     qDebug('MainWindow.save_settings()')
     self._global_settings = global_settings
     self._perspective_settings = perspective_settings
     self._settings = self._perspective_settings.get_settings('mainwindow')
     # store current setup to current _settings
     self._save_geometry_to_perspective()
     self._save_state_to_perspective()
开发者ID:mylxiaoyi,项目名称:ros_distro,代码行数:8,代码来源:main_window.py


示例8: restore_settings

 def restore_settings(self, global_settings, perspective_settings):
     qDebug('MainWindow.restore_settings()')
     # remember new _settings
     self._global_settings = global_settings
     self._perspective_settings = perspective_settings
     self._settings = self._perspective_settings.get_settings('mainwindow')
     # only restore geometry, restoring state is triggered after PluginManager has been updated
     self._restore_geometry_from_perspective()
开发者ID:mylxiaoyi,项目名称:ros_distro,代码行数:8,代码来源:main_window.py


示例9: _restore_settings_restore_callback

 def _restore_settings_restore_callback(self, instance_id=None):
     if instance_id is not None:
         self._number_of_ongoing_calls = self._number_of_ongoing_calls - 1
     if self._number_of_ongoing_calls == 0:
         if instance_id is not None:
             qDebug('PluginManager.restore_settings() all plugin settings restored')
         self._number_of_ongoing_calls = None
         # restore state of top-level widgets
         self.plugins_changed_signal.emit()
开发者ID:abhat91,项目名称:ros_osx,代码行数:9,代码来源:plugin_manager.py


示例10: _restore_settings_load_missing_callback

 def _restore_settings_load_missing_callback(self, handler=None, exception=None):
     if handler is not None:
         self._number_of_ongoing_calls = self._number_of_ongoing_calls - 1
         self._load_plugin_completed(handler, exception)
     if self._number_of_ongoing_calls == 0:
         if handler is not None:
             qDebug('PluginManager.restore_settings() all missing plugins loaded')
         self._number_of_ongoing_calls = None
         self._restore_settings_restore()
开发者ID:abhat91,项目名称:ros_osx,代码行数:9,代码来源:plugin_manager.py


示例11: _restore_settings_unload_obsolete_callback

 def _restore_settings_unload_obsolete_callback(self, instance_id=None):
     if instance_id is not None:
         self._number_of_ongoing_calls = self._number_of_ongoing_calls - 1
         self._remove_running_plugin(instance_id)
     if self._number_of_ongoing_calls == 0:
         if instance_id is not None:
             qDebug('PluginManager.restore_settings() all obsolete plugins unloaded')
         self._number_of_ongoing_calls = None
         self._restore_settings_load_missing()
开发者ID:abhat91,项目名称:ros_osx,代码行数:9,代码来源:plugin_manager.py


示例12: emit_restore_settings_completed

 def emit_restore_settings_completed(self):
     qDebug('PluginHandler.emit_restore_settings_completed()')
     # call after plugin has restored settings as it may spawn additional dock widgets
     self._call_method_on_all_dock_widgets('restore_settings', self.__instance_settings)
     self.__instance_settings = None
     if self.__callback is not None:
         callback = self.__callback
         self.__callback = None
         callback(self._instance_id)
开发者ID:ethz-asl,项目名称:qt_gui_core,代码行数:9,代码来源:plugin_handler.py


示例13: _save_settings_from_remote

 def _save_settings_from_remote(self):
     qDebug('PluginHandlerXEmbedClient._save_settings_from_remote()')
     try:
         plugin_settings = Settings(self._remote_plugin_settings, '')
         instance_settings = Settings(self._remote_instance_settings, '')
         self._save_settings(plugin_settings, instance_settings)
     except Exception:
         qCritical('PluginHandlerXEmbedClient._save_settings_from_remote() plugin "%s" raised an exception:\n%s' % (str(self._instance_id), traceback.format_exc()))
         self.emit_save_settings_completed()
开发者ID:abhat91,项目名称:ros_osx,代码行数:9,代码来源:plugin_handler_xembed_client.py


示例14: closeEvent

 def closeEvent(self, event):
     qDebug('MainWindow.closeEvent()')
     if not self._save_on_close_signaled:
         self._save_geometry_to_perspective()
         self._save_state_to_perspective()
         self._save_on_close_signaled = True
         self.save_settings_before_close_signal.emit(self._global_settings, self._perspective_settings)
         event.ignore()
     else:
         event.accept()
开发者ID:mylxiaoyi,项目名称:ros_distro,代码行数:10,代码来源:main_window.py


示例15: unload_plugin

 def unload_plugin(self, instance_id_str):
     # unloading a plugin with locked perspective or running standalone triggers close of application
     if self._application_context.options.lock_perspective or self._application_context.options.standalone_plugin:
         self._close_application_signal()
         return
     instance_id = PluginInstanceId(instance_id=instance_id_str)
     qDebug('PluginManager.unload_plugin(%s)' % str(instance_id))
     # save state of top-level widgets
     self.plugins_about_to_change_signal.emit()
     # save settings before shutdown and unloading
     self._save_plugin_settings(instance_id, self._unload_plugin_shutdown)
开发者ID:abhat91,项目名称:ros_osx,代码行数:11,代码来源:plugin_manager.py


示例16: _save_settings

 def _save_settings(self, global_settings, perspective_settings, callback):
     qDebug('PluginManager.save_settings()')
     self._global_settings = global_settings.get_settings('pluginmanager')
     self._perspective_settings = perspective_settings.get_settings('pluginmanager')
     self._store_running_plugins()
     # trigger async call on all running plugins
     self._number_of_ongoing_calls = len(self._running_plugins)
     if self._number_of_ongoing_calls > 0:
         for info in self._running_plugins.values():
             self._save_plugin_settings(info['instance_id'], callback)
     else:
         callback()
开发者ID:abhat91,项目名称:ros_osx,代码行数:12,代码来源:plugin_manager.py


示例17: restore_settings

 def restore_settings(self, plugin_settings, instance_settings, callback=None):
     """
     Restore settings of the plugin (`Plugin.restore_settings()`) and all dock widget title bars.
     Completion is signaled asynchronously if a callback is passed.
     """
     qDebug('PluginHandler.restore_settings()')
     self.__instance_settings = instance_settings
     self.__callback = callback
     try:
         self._restore_settings(plugin_settings, instance_settings)
     except Exception:
         qCritical('PluginHandler.restore_settings() plugin "%s" raised an exception:\n%s' % (str(self._instance_id), traceback.format_exc()))
         self.emit_restore_settings_completed()
开发者ID:ethz-asl,项目名称:qt_gui_core,代码行数:13,代码来源:plugin_handler.py


示例18: _restore_settings_save_obsolete

 def _restore_settings_save_obsolete(self):
     # trigger shutdown of obsolete plugins
     plugins = self._restore_running_plugins_get_plugins()
     obsolete = []
     for instance_id in self._running_plugins.keys():
         if instance_id not in plugins.keys():
             obsolete.append(PluginInstanceId(instance_id=instance_id))
     self._number_of_ongoing_calls = len(obsolete)
     if self._number_of_ongoing_calls > 0:
         qDebug('PluginManager.restore_settings() unloading %d obsolete plugins' % self._number_of_ongoing_calls)
         for instance_id in obsolete:
             self._shutdown_plugin(instance_id, self._restore_settings_unload_obsolete)
     else:
         self._restore_settings_unload_obsolete_callback()
开发者ID:abhat91,项目名称:ros_osx,代码行数:14,代码来源:plugin_manager.py


示例19: _restore_settings_load_missing

 def _restore_settings_load_missing(self):
     # trigger_load of not yet loaded plugins
     plugins = self._restore_running_plugins_get_plugins()
     loading = []
     for instance_id_str, instance_id in plugins.items():
         if instance_id_str not in self._running_plugins.keys():
             loading.append(instance_id)
     self._number_of_ongoing_calls = len(loading)
     if self._number_of_ongoing_calls > 0:
         qDebug('PluginManager.restore_settings() loading %d plugins' % self._number_of_ongoing_calls)
         for instance_id in loading:
             self._load_plugin_load(instance_id, self._restore_settings_load_missing_callback)
     else:
         self._restore_settings_load_missing_callback()
开发者ID:abhat91,项目名称:ros_osx,代码行数:14,代码来源:plugin_manager.py


示例20: start_plugin

 def start_plugin(self, plugin_name, argv):
     qDebug('PluginManagerDBusInterface.start_plugin(%s)' % plugin_name)
     plugins = self._plugin_manager.find_plugins_by_name(plugin_name)
     if len(plugins) == 0:
         msg = 'PluginManagerDBusInterface.start_plugin() found no plugin matching "%s"' % plugin_name
         qWarning(msg)
         return (1, msg)
     elif len(plugins) > 1:
         msg = 'PluginManagerDBusInterface.start_plugin() found multiple plugins matching "%s"\n%s' % (plugin_name, '\n'.join(plugins.values()))
         qWarning(msg)
         return (1, msg)
     plugin_id = plugins.keys()[0]
     self._plugin_manager.load_plugin(plugin_id, argv=argv.split(' ') if argv else [])
     return (0, plugin_id)
开发者ID:abhat91,项目名称:ros_osx,代码行数:14,代码来源:plugin_manager_dbus_interface.py



注:本文中的python_qt_binding.QtCore.qDebug函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python QtCore.qWarning函数代码示例发布时间:2022-05-27
下一篇:
Python python_qt_binding.loadUi函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap