kivy_liste_des_elements_graphiques_widgets_complexes
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
kivy_liste_des_elements_graphiques_widgets_complexes [2018/04/05 11:59] – [Popup] serge | kivy_liste_des_elements_graphiques_widgets_complexes [2020/01/18 11:08] – [Virtual Keyboard] serge | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
======Kivy: Liste des éléments graphiques Widgets complexes====== | ======Kivy: Liste des éléments graphiques Widgets complexes====== | ||
- | + | <WRAP center round box 60% centeralign> | |
- | ====== Widgets complexes ====== | + | **{{tagpage> |
+ | **[[http:// | ||
+ | </ | ||
===== Buble ===== | ===== Buble ===== | ||
{{: | {{: | ||
- | **bubble.py** | + | <code python |
- | + | ||
- | <code python> | + | |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 25: | Ligne 24: | ||
def __init__(self, | def __init__(self, | ||
- | super(BubbleDemo, self).__init__(**kwargs) | + | super().__init__(**kwargs) |
self.but_bubble = Button(text=' | self.but_bubble = Button(text=' | ||
self.but_bubble.bind(on_release=self.show_bubble) | self.but_bubble.bind(on_release=self.show_bubble) | ||
Ligne 48: | Ligne 47: | ||
BubbleApp().run() | BubbleApp().run() | ||
</ | </ | ||
- | **bubble.kv** | ||
- | <code python> | + | <code python |
< | < | ||
size_hint: (None, None) | size_hint: (None, None) | ||
Ligne 67: | Ligne 65: | ||
{{: | {{: | ||
- | **dropdown_with_kv.py** | + | <code python |
- | + | ||
- | <code python> | + | |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 97: | Ligne 93: | ||
pas dans kv | pas dans kv | ||
''' | ''' | ||
- | super(DropdownDemo, | + | super().__init__(**kwargs) |
self.dropdown = CustomDropDown() | self.dropdown = CustomDropDown() | ||
# Création d'un widget bouton | # Création d'un widget bouton | ||
Ligne 134: | Ligne 130: | ||
DropdownApp().run() | DropdownApp().run() | ||
</ | </ | ||
- | **dropdown.kv** | ||
- | <code python> | + | <code python |
#:kivy 1.8.0 | #:kivy 1.8.0 | ||
Ligne 161: | Ligne 156: | ||
On cherche à comprendre FileChooser et hop on te colle du Factory.register ! Nul ! | On cherche à comprendre FileChooser et hop on te colle du Factory.register ! Nul ! | ||
- | **filechooser.py** | + | <code python |
- | + | ||
- | <code python> | + | |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 225: | Ligne 218: | ||
Filechooser().run() | Filechooser().run() | ||
</ | </ | ||
- | **filechooser.kv** | ||
- | <code python> | + | <code python |
#:kivy 1.1.0 | #:kivy 1.1.0 | ||
Ligne 300: | Ligne 292: | ||
on_release: root.save(filechooser.path, | on_release: root.save(filechooser.path, | ||
</ | </ | ||
- | ===== Popup ===== | ||
- | |||
===== Spinner ===== | ===== Spinner ===== | ||
Ligne 307: | Ligne 297: | ||
{{: | {{: | ||
- | <code python> | + | <code python |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 335: | Ligne 325: | ||
{{: | {{: | ||
- | <code python> | + | <code python |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 360: | Ligne 350: | ||
Des onglets classiques: {{: | Des onglets classiques: {{: | ||
- | <code python> | + | <code python |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 412: | Ligne 402: | ||
Double clic pour plein écran ! {{: | Double clic pour plein écran ! {{: | ||
- | **videoplayerdemo.py** | + | <code python |
- | + | ||
- | <code python> | + | |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 450: | Ligne 438: | ||
Le clavier seul: {{: | Le clavier seul: {{: | ||
- | <code python> | + | <code python |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 467: | Ligne 455: | ||
VkeyboardApp().run() | VkeyboardApp().run() | ||
</ | </ | ||
- | {{tag> | + | |
+ | {{tag> |
kivy_liste_des_elements_graphiques_widgets_complexes.txt · Dernière modification : 2020/12/01 17:43 de serge