- class QDBus#
The QDBus namespace contains miscellaneous identifiers used throughout the Qt D-Bus module. More…
注意
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
详细描述#
- class CallMode#
This enum describes the various ways of placing a function call. The valid modes are
常量
描述
QDBus.NoBlock
Place the call but don’t wait for the reply (the reply’s contents will be discarded).
QDBus.Block
Don’t use an event loop to wait for a reply, but instead block on network operations while waiting. This means the user-interface may not be updated until the function returns.
QDBus.BlockWithGui
使用Qt事件循环等待回应。这意味着用户界面将保持响应(处理输入事件),但同时也意味着可能会发生其他事件,例如信号传递和其他D-Bus方法调用。
QDBus.AutoDetect
自动检测调用函数是否有回应。
当使用BlockWithGui时,应用程序必须为任何函数的重新入團過程做好准备。