本文整理汇总了Python中GPS.process_all_events方法的典型用法代码示例。如果您正苦于以下问题:Python GPS.process_all_events方法的具体用法?Python GPS.process_all_events怎么用?Python GPS.process_all_events使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GPS
的用法示例。
在下文中一共展示了GPS.process_all_events方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: process_all_events
# 需要导入模块: import GPS [as 别名]
# 或者: from GPS import process_all_events [as 别名]
def process_all_events():
"""
Process all pending events. This is often needed in the testsuite,
where we need to wait for events to be processed to make sure that a
view is refreshed for instance. Using this function is not recommended
in the general case, but is sometimes unavoidable. In general, it is
better to use idle callbacks through GObject.idle_add, to avoid
blocking the whole GPS interface.
"""
GPS.process_all_events()