本文整理汇总了Python中jarabe.view.buddyicon.BuddyIcon.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python BuddyIcon.__init__方法的具体用法?Python BuddyIcon.__init__怎么用?Python BuddyIcon.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类jarabe.view.buddyicon.BuddyIcon
的用法示例。
在下文中一共展示了BuddyIcon.__init__方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from jarabe.view.buddyicon import BuddyIcon [as 别名]
# 或者: from jarabe.view.buddyicon.BuddyIcon import __init__ [as 别名]
def __init__(self, size):
BuddyIcon.__init__(self, buddy=get_owner_instance(), pixel_size=size)
self.palette_invoker.cache_palette = True
self._palette_enabled = False
self._register_menu = None
示例2: __init__
# 需要导入模块: from jarabe.view.buddyicon import BuddyIcon [as 别名]
# 或者: from jarabe.view.buddyicon.BuddyIcon import __init__ [as 别名]
def __init__(self, size):
BuddyIcon.__init__(self, buddy=get_owner_instance(), pixel_size=size)
# This is a workaround to skip the callback for
# enter-notify-event in the parent class the first time.
def __enter_notify_event_cb(icon, event):
self.unset_state_flags(Gtk.StateFlags.PRELIGHT)
self.disconnect(self._enter_notify_hid)
self._enter_notify_hid = self.connect('enter-notify-event',
__enter_notify_event_cb)
示例3: __init__
# 需要导入模块: from jarabe.view.buddyicon import BuddyIcon [as 别名]
# 或者: from jarabe.view.buddyicon.BuddyIcon import __init__ [as 别名]
def __init__(self, size):
BuddyIcon.__init__(self, buddy=get_owner_instance(), pixel_size=size)
self.palette_invoker.cache_palette = True
self._palette_enabled = False
self._register_menu = None
# This is a workaround to skip the callback for
# enter-notify-event in the parent class the first time.
def __enter_notify_event_cb(icon, event):
self.unset_state_flags(Gtk.StateFlags.PRELIGHT)
self.disconnect(self._enter_notify_hid)
self._enter_notify_hid = self.connect('enter-notify-event',
__enter_notify_event_cb)
示例4: __init__
# 需要导入模块: from jarabe.view.buddyicon import BuddyIcon [as 别名]
# 或者: from jarabe.view.buddyicon.BuddyIcon import __init__ [as 别名]
def __init__(self, size):
BuddyIcon.__init__(self, buddy=get_owner_instance(), size=size)
self._palette_enabled = False
self._register_menu = None