本文整理汇总了Python中lollypop.view.View._on_destroy方法的典型用法代码示例。如果您正苦于以下问题:Python View._on_destroy方法的具体用法?Python View._on_destroy怎么用?Python View._on_destroy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lollypop.view.View
的用法示例。
在下文中一共展示了View._on_destroy方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _on_destroy
# 需要导入模块: from lollypop.view import View [as 别名]
# 或者: from lollypop.view.View import _on_destroy [as 别名]
def _on_destroy(self, widget):
"""
Disconnect signals
@param widget as Gtk.Widget
"""
View._on_destroy(self, widget)
if self._signal is not None:
Lp.art.disconnect(self._signal)
示例2: _on_destroy
# 需要导入模块: from lollypop.view import View [as 别名]
# 或者: from lollypop.view.View import _on_destroy [as 别名]
def _on_destroy(self, widget):
"""
Remove running timeout
@param widget as Gtk.Widget
"""
if self.__timeout_id is not None:
GLib.source_remove(self.__timeout_id)
self.__timeout_id = None
View._on_destroy(self, widget)
示例3: _on_destroy
# 需要导入模块: from lollypop.view import View [as 别名]
# 或者: from lollypop.view.View import _on_destroy [as 别名]
def _on_destroy(self, widget):
"""
Disconnect signals
@param widget as Gtk.Widget
"""
View._on_destroy(self, widget)
if self._signal_id:
Lp.playlists.disconnect(self._signal_id)
self._signal_id = None
示例4: _on_destroy
# 需要导入模块: from lollypop.view import View [as 别名]
# 或者: from lollypop.view.View import _on_destroy [as 别名]
def _on_destroy(self, widget):
"""
Disconnect signals
@param widget as Gtk.Widget
"""
View._on_destroy(self, widget)
if self._signal_id1:
Lp().playlists.disconnect(self._signal_id1)
self._signal_id1 = None
if self._signal_id2:
Lp().playlists.disconnect(self._signal_id2)
self._signal_id2 = None