本文整理汇总了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