Mercurial > libervia-desktop-kivy
comparison src/libs/garden/garden.contextmenu/examples/simple_app_menu.py @ 113:c439c271ecdd
core (notifications), CagouWidget: a backround rectangle is drawned behind drop boxes
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 26 Jan 2017 20:39:15 +0100 |
parents | 741a7d6d8c28 |
children |
comparison
equal
deleted
inserted
replaced
112:d654bdfeb404 | 113:c439c271ecdd |
---|---|
6 | 6 |
7 kivy.require('1.9.0') | 7 kivy.require('1.9.0') |
8 # Logger.setLevel(logging.DEBUG) | 8 # Logger.setLevel(logging.DEBUG) |
9 | 9 |
10 import kivy.garden.contextmenu | 10 import kivy.garden.contextmenu |
11 | |
12 | 11 |
13 kv = """ | 12 kv = """ |
14 FloatLayout: | 13 FloatLayout: |
15 id: layout | 14 id: layout |
16 AppMenu: | 15 AppMenu: |
68 text: "Left click anywhere outside the context menu to close it" | 67 text: "Left click anywhere outside the context menu to close it" |
69 size_hint: None, None | 68 size_hint: None, None |
70 size: self.texture_size | 69 size: self.texture_size |
71 """ | 70 """ |
72 | 71 |
72 | |
73 class MyApp(App): | 73 class MyApp(App): |
74 | 74 |
75 def build(self): | 75 def build(self): |
76 self.title = 'Simple app menu example' | 76 self.title = 'Simple app menu example' |
77 return Builder.load_string(kv) | 77 return Builder.load_string(kv) |