blob: 75f5267c5d33f2090fba72b1a51ebaaaaf7e38a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#:import ContextMenu tagit.external.kivy_garden.contextmenu.ContextMenu
<Context>:
menu: context_menu
visible: False
# the root widget should set these two to itself
bounding_box_widget: self
cancel_handler_widget: self
# button config
button_width: 200
button_height: dp(35)
button_show: 'text', 'image'
ContextMenu: # the actual menu
id: context_menu
visible: False
cancel_handler_widget: root
bounding_box_widget: root.bounding_box_widget
width: root.button_width
<ContextMenuAction>:
width: self.parent.width if self.parent else 0
size_hint: 1, None
## EOF ##
|