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/07/24 11:36] – serge | kivy_liste_des_elements_graphiques_widgets_complexes [2020/02/08 12:15] – [Kivy: Liste des éléments graphiques Widgets complexes] 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> | ||
+ | **{{tagpage> | ||
+ | **[[http:// | ||
+ | </ | ||
+ | <WRAP center round box 40% centeralign> | ||
+ | **[[les_pages_kivy_en_details|Les pages Kivy en détails]]** | ||
+ | </ | ||
===== Buble ===== | ===== Buble ===== | ||
{{: | {{: | ||
- | **bubble.py** | + | <code python |
- | + | ||
- | <code python> | + | |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 23: | Ligne 27: | ||
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 46: | Ligne 50: | ||
BubbleApp().run() | BubbleApp().run() | ||
</ | </ | ||
- | **bubble.kv** | ||
- | <code python> | + | <code python |
< | < | ||
size_hint: (None, None) | size_hint: (None, None) | ||
Ligne 65: | Ligne 68: | ||
{{: | {{: | ||
- | **dropdown_with_kv.py** | + | <code python |
- | + | ||
- | <code python> | + | |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 95: | Ligne 96: | ||
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 132: | Ligne 133: | ||
DropdownApp().run() | DropdownApp().run() | ||
</ | </ | ||
- | **dropdown.kv** | ||
- | <code python> | + | <code python |
#:kivy 1.8.0 | #:kivy 1.8.0 | ||
Ligne 159: | Ligne 159: | ||
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 223: | Ligne 221: | ||
Filechooser().run() | Filechooser().run() | ||
</ | </ | ||
- | **filechooser.kv** | ||
- | <code python> | + | <code python |
#:kivy 1.1.0 | #:kivy 1.1.0 | ||
Ligne 303: | Ligne 300: | ||
{{: | {{: | ||
- | <code python> | + | <code python |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 331: | Ligne 328: | ||
{{: | {{: | ||
- | <code python> | + | <code python |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 356: | Ligne 353: | ||
Des onglets classiques: {{: | Des onglets classiques: {{: | ||
- | <code python> | + | <code python |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 408: | Ligne 405: | ||
Double clic pour plein écran ! {{: | Double clic pour plein écran ! {{: | ||
- | **videoplayerdemo.py** | + | <code python |
- | + | ||
- | <code python> | + | |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 446: | Ligne 441: | ||
Le clavier seul: {{: | Le clavier seul: {{: | ||
- | <code python> | + | <code python |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 463: | Ligne 458: | ||
VkeyboardApp().run() | VkeyboardApp().run() | ||
</ | </ | ||
- | {{tag> | + | |
+ | {{tag> |
kivy_liste_des_elements_graphiques_widgets_complexes.txt · Dernière modification : 2020/12/01 17:43 de serge