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édente | ||
kivy_liste_des_elements_graphiques_widgets_complexes [2018/03/22 14:52] – serge | kivy_liste_des_elements_graphiques_widgets_complexes [2020/12/01 17:43] (Version actuelle) – ↷ Liens modifiés en raison d'un déplacement. 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:// | ||
+ | </ | ||
+ | <WRAP center round box 40% centeralign> | ||
+ | **[[les_pages_kivy_en_details|Les pages Kivy en détails]]** | ||
+ | </ | ||
===== Buble ===== | ===== Buble ===== | ||
- | {{:Bubble1.png? | + | {{media_05:bubble1.png? |
- | + | ||
- | **bubble.py** | + | |
- | <code python> | + | <code python |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 25: | 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 48: | Ligne 50: | ||
BubbleApp().run() | BubbleApp().run() | ||
</ | </ | ||
- | **bubble.kv** | ||
- | <code python> | + | <code python |
< | < | ||
size_hint: (None, None) | size_hint: (None, None) | ||
Ligne 65: | Ligne 66: | ||
Sélection dans une liste et exemple d' | Sélection dans une liste et exemple d' | ||
- | {{:Dropdown1.png? | + | {{media_03:dropdown1.png? |
- | **dropdown_with_kv.py** | + | <code python |
- | + | ||
- | <code python> | + | |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 97: | 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 134: | Ligne 133: | ||
DropdownApp().run() | DropdownApp().run() | ||
</ | </ | ||
- | **dropdown.kv** | ||
- | <code python> | + | <code python |
#:kivy 1.8.0 | #:kivy 1.8.0 | ||
Ligne 157: | Ligne 155: | ||
===== File Chooser ===== | ===== File Chooser ===== | ||
- | {{:Filechooser1.png? | + | {{media_06:filechooser1.png? |
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 221: | ||
Filechooser().run() | Filechooser().run() | ||
</ | </ | ||
- | **filechooser.kv** | ||
- | <code python> | + | <code python |
#:kivy 1.1.0 | #:kivy 1.1.0 | ||
Ligne 300: | Ligne 295: | ||
on_release: root.save(filechooser.path, | on_release: root.save(filechooser.path, | ||
</ | </ | ||
- | ===== Popup ===== | ||
- | |||
- | L' | ||
===== Spinner ===== | ===== Spinner ===== | ||
- | {{:Spinner.jpg? | + | {{media_12:spinner.jpg? |
- | <code python> | + | <code python |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 334: | Ligne 326: | ||
===== List View ===== | ===== List View ===== | ||
- | {{:Listview1.png? | + | {{media_08:listview1.png? |
- | <code python> | + | <code python |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 361: | Ligne 353: | ||
Des onglets classiques: {{: | Des onglets classiques: {{: | ||
- | <code python> | + | <code python |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 413: | 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 451: | Ligne 441: | ||
Le clavier seul: {{: | Le clavier seul: {{: | ||
- | <code python> | + | <code python |
#! / | #! / | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 468: | Ligne 458: | ||
VkeyboardApp().run() | VkeyboardApp().run() | ||
</ | </ | ||
- | {{tag> | + | |
+ | {{tag> kivy python sb }} |
kivy_liste_des_elements_graphiques_widgets_complexes.1521730372.txt.gz · Dernière modification : 2018/03/22 14:52 de serge