def hover_clicked(obj, item=None): win = StandardWindow("hover", "Hover", autodel=True, size=(320, 320)) bx = Box(win, size_hint_weight=EXPAND_BOTH) win.resize_object_add(bx) bx.show() hv = Hover(win) bt = Button(win, text="Button") bt.callback_clicked_add(hover_bt1_clicked, hv) bx.pack_end(bt) bt.show() hv.target = bt bt = Button(win, text="Popup") hv.part_content_set("middle", bt) bt.show() bx = Box(win) ic = Icon(win, file=os.path.join(img_path, "logo_small.png"), resizable=(False, False)) bx.pack_end(ic) ic.show() for t in "Top 1", "Top 2", "Top 3": bt = Button(win, text=t) bx.pack_end(bt) bt.show() bx.show() hv.part_content_set("top", bx) bt = Button(win, text="Bottom") hv.part_content_set("bottom", bt) bt.show() bt = Button(win, text="Left") hv.part_content_set("left", bt) bt.show() bt = Button(win, text="Right") hv.part_content_set("right", bt) bt.show() win.show()