本文整理匯總了Python中efl.elementary.frame.Frame.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python Frame.__init__方法的具體用法?Python Frame.__init__怎麽用?Python Frame.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類efl.elementary.frame.Frame
的用法示例。
在下文中一共展示了Frame.__init__方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from efl.elementary.frame import Frame [as 別名]
# 或者: from efl.elementary.frame.Frame import __init__ [as 別名]
def __init__(self, parent, session):
Frame.__init__(self, parent)
self.session = session
self.size_hint_align = FILL_HORIZ
self.text = "Listen port (range)"
port = session.listen_port()
b = Box(parent)
b.size_hint_weight = EXPAND_HORIZ
lp = self.lp = RangeSpinners(
parent,
low = session.conf.getint("Settings", "listen_low"),
high = session.conf.getint("Settings", "listen_high"),
minim = 0, maxim = 65535)
lp.show()
b.pack_end(lp)
save = Button(parent)
save.text = "Apply"
save.callback_clicked_add(self.save_cb)
save.show()
b.pack_end(save)
b.show()
self.content = b
示例2: __init__
# 需要導入模塊: from efl.elementary.frame import Frame [as 別名]
# 或者: from efl.elementary.frame.Frame import __init__ [as 別名]
def __init__(self, parent_widget, ourText=None, image=None, *args, **kwargs):
Frame.__init__(self, parent_widget, *args, **kwargs)
self.text = ourText
self.ourImage = Image(self)
self.ourImage.size_hint_weight = EXPAND_BOTH
if image:
self.ourImage.file_set(image)
self.content_set(self.ourImage)
示例3: __init__
# 需要導入模塊: from efl.elementary.frame import Frame [as 別名]
# 或者: from efl.elementary.frame.Frame import __init__ [as 別名]
def __init__(self, parent, color, tag_name):
Frame.__init__(self, parent, style='pad_small', propagate_events=False)
self._rect = Rectangle(self.evas, color=color)
self._rect.on_mouse_down_add(lambda o,i: self._popup_build())
self.content = self._rect
self._tag_name = tag_name