def _on_leave_notify(self, widget, event):
"""
On leave notify remove css hover class
:param widget: as Gtk.EventBox (can be None)
:param event: as Gdk.Event (can be None)
"""
self.box.get_style_context().remove_class("box_hover")
self.play_img.get_style_context().remove_class("box_hover")
if self.ui.current_track_element is not self and not self.selected:
self.play_img.clear()
评论列表
文章目录