Outils pour utilisateurs

Outils du site


kivy_liste_des_elements_graphiques_widgets_complexes

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
kivy_liste_des_elements_graphiques_widgets_complexes [2018/03/22 14:51] – créée sergekivy_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>kivy|Toutes les pages Kivy}}** 
 +**[[http://translate.google.com/translate?hl=&sl=fr&tl=en&u=https%3A%2F%2Fressources.labomedia.org%2Fkivy_liste_des_elements_graphiques_widgets_complexes&sandbox=1|English Version]]** 
 +</WRAP> 
 +<WRAP center round box 40% centeralign> 
 +**[[les_pages_kivy_en_details|Les pages Kivy en détails]]** 
 +</WRAP>
 ===== Buble ===== ===== Buble =====
  
-{{:Bubble1.png?200|Bubble1.png Bubble1.png}} +{{media_05:bubble1.png?200|Bubble1.png Bubble1.png}}
- +
-**bubble.py**+
  
-<code python>+<code python bubble.py>
 #! /usr/bin/env python3 #! /usr/bin/env python3
 # -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
Ligne 25: Ligne 27:
  
     def __init__(self, **kwargs):     def __init__(self, **kwargs):
-        super(BubbleDemo, self).__init__(**kwargs)+        super().__init__(**kwargs)
         self.but_bubble = Button(text='Press to show bubble')         self.but_bubble = Button(text='Press to show bubble')
         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()
 </code> </code>
-**bubble.kv** 
  
-<code python>+<code python bubble.kv>
 <Cut_copy_paste>: <Cut_copy_paste>:
     size_hint: (None, None)     size_hint: (None, None)
Ligne 65: Ligne 66:
  
 Sélection dans une liste et exemple d'utilisation du choix.\\ Sélection dans une liste et exemple d'utilisation du choix.\\
-{{:Dropdown1.png?300|fig:Dropdown1.png}}+{{media_03:dropdown1.png?300|fig:Dropdown1.png}}
  
-**dropdown_with_kv.py** +<code python dropdown_with_kv.py>
- +
-<code python>+
 #! /usr/bin/env python3 #! /usr/bin/env python3
 # -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
Ligne 97: Ligne 96:
         pas dans kv         pas dans kv
         '''         '''
-        super(DropdownDemo, self).__init__(**kwargs)+        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()
 </code> </code>
-**dropdown.kv** 
  
-<code python>+<code python dropdown.kv>
 #:kivy 1.8.0 #:kivy 1.8.0
  
Ligne 157: Ligne 155:
 ===== File Chooser ===== ===== File Chooser =====
  
-{{:Filechooser1.png?300|Filechooser1.png Filechooser1.png}}+{{media_06:filechooser1.png?300|Filechooser1.png 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 filechooser.py>
- +
-<code python>+
 #! /usr/bin/env python3 #! /usr/bin/env python3
 # -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
Ligne 225: Ligne 221:
     Filechooser().run()     Filechooser().run()
 </code> </code>
-**filechooser.kv** 
  
-<code python>+<code python filechooser.kv>
 #:kivy 1.1.0 #:kivy 1.1.0
  
Ligne 300: Ligne 295:
                 on_release: root.save(filechooser.path, text_input.text)                 on_release: root.save(filechooser.path, text_input.text)
 </code> </code>
-===== Popup ===== 
- 
-L'exemple [[Kivy_pour_les_d%C3%A9butants:_Liste_des_%C3%A9l%C3%A9ments_graphiques#File_Chooser|**filechooser.py**]] contient un popup, voir cet exemple. 
  
 ===== Spinner ===== ===== Spinner =====
  
-{{:Spinner.jpg?200|Spinner.jpg Spinner.jpg}}+{{media_12:spinner.jpg?200|Spinner.jpg Spinner.jpg}}
  
-<code python>+<code python spinner_ex.py>
 #! /usr/bin/env python3 #! /usr/bin/env python3
 # -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
Ligne 334: Ligne 326:
 ===== List View ===== ===== List View =====
  
-{{:Listview1.png?300|Listview1.png Listview1.png}}+{{media_08:listview1.png?300|Listview1.png Listview1.png}}
  
-<code python>+<code python list_view.py>
 #! /usr/bin/env python3 #! /usr/bin/env python3
 # -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
Ligne 361: Ligne 353:
 Des onglets classiques: {{:Tabbed1.png?300|fig:Tabbed1.png}} Des onglets classiques: {{:Tabbed1.png?300|fig:Tabbed1.png}}
  
-<code python>+<code python tabbed_panel.py>
 #! /usr/bin/env python3 #! /usr/bin/env python3
 # -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
Ligne 413: Ligne 405:
 Double clic pour plein écran ! {{:Videoplayer1.png?300|fig:Videoplayer1.png}} Double clic pour plein écran ! {{:Videoplayer1.png?300|fig:Videoplayer1.png}}
  
-**videoplayerdemo.py** +<code python videoplayerdemo.py>
- +
-<code python>+
 #! /usr/bin/env python3 #! /usr/bin/env python3
 # -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
Ligne 451: Ligne 441:
 Le clavier seul: {{:Vkeyboard1.png?300|fig:Vkeyboard1.png}} Le clavier seul: {{:Vkeyboard1.png?300|fig:Vkeyboard1.png}}
  
-<code python>+<code python clavier.py>
 #! /usr/bin/env python3 #! /usr/bin/env python3
 # -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
Ligne 468: Ligne 458:
     VkeyboardApp().run()     VkeyboardApp().run()
 </code> </code>
-{{tag>kivy}}+ 
 +{{tag> kivy python sb }}
kivy_liste_des_elements_graphiques_widgets_complexes.1521730265.txt.gz · Dernière modification : 2018/03/22 14:51 de serge