当前位置: 首页>>代码示例>>Python>>正文


Python QtCore.qDebug函数代码示例

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


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


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