本文整理汇总了Python中miro.plat.frontends.widgets.base.Widget.viewport_created方法的典型用法代码示例。如果您正苦于以下问题:Python Widget.viewport_created方法的具体用法?Python Widget.viewport_created怎么用?Python Widget.viewport_created使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类miro.plat.frontends.widgets.base.Widget
的用法示例。
在下文中一共展示了Widget.viewport_created方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: viewport_created
# 需要导入模块: from miro.plat.frontends.widgets.base import Widget [as 别名]
# 或者: from miro.plat.frontends.widgets.base.Widget import viewport_created [as 别名]
def viewport_created(self):
Widget.viewport_created(self)
if self.view.isLoading():
# We haven't set up our delegates yet, but have already started
# loading a webpage. Send the net-start signal now because the
# delegate will miss it.
self.emit("net-start")
self._set_webkit_delegates(self.delegate)
示例2: viewport_created
# 需要导入模块: from miro.plat.frontends.widgets.base import Widget [as 别名]
# 或者: from miro.plat.frontends.widgets.base.Widget import viewport_created [as 别名]
def viewport_created(self):
Widget.viewport_created(self)
self.notifications.connect(self.on_changed, 'NSTextDidChangeNotification')
self.invalidate_size_request()
示例3: viewport_created
# 需要导入模块: from miro.plat.frontends.widgets.base import Widget [as 别名]
# 或者: from miro.plat.frontends.widgets.base.Widget import viewport_created [as 别名]
def viewport_created(self):
Widget.viewport_created(self)
self.notifications.connect(self.on_changed, 'NSTextDidChangeNotification')
self.notifications.connect(self.on_end_editing,
'NSControlTextDidEndEditingNotification')
self.invalidate_size_request()