本文整理汇总了Python中efl.elementary.window.StandardWindow.alpha方法的典型用法代码示例。如果您正苦于以下问题:Python StandardWindow.alpha方法的具体用法?Python StandardWindow.alpha怎么用?Python StandardWindow.alpha使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类efl.elementary.window.StandardWindow
的用法示例。
在下文中一共展示了StandardWindow.alpha方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: video_clicked
# 需要导入模块: from efl.elementary.window import StandardWindow [as 别名]
# 或者: from efl.elementary.window.StandardWindow import alpha [as 别名]
def video_clicked(obj):
win = StandardWindow("video", "video", autodel=True, size=(800, 600))
win.alpha = True # Needed to turn video fast path on
video = Video(win, size_hint_weight=EXPAND_BOTH)
win.resize_object_add(video)
video.show()
player = Player(win, content=video)
player.show()
notify = Notify(win, orient=ELM_NOTIFY_ORIENT_BOTTOM, timeout=3.0)
notify.content = player
tb = Table(win, size_hint_weight=EXPAND_BOTH)
win.resize_object_add(tb)
bt = FileselectorButton(win, text="Select Video",
size_hint_weight=EXPAND_BOTH, size_hint_align=(0.5, 0.1))
bt.callback_file_chosen_add(my_bt_open, video)
tb.pack(bt, 0, 0, 1, 1)
bt.show()
tb.show()
video.event_callback_add(EVAS_CALLBACK_MOUSE_MOVE, notify_show, notify)
video.event_callback_add(EVAS_CALLBACK_MOUSE_IN, notify_block, notify)
video.event_callback_add(EVAS_CALLBACK_MOUSE_OUT, notify_unblock, notify)
win.show()