kivy_graph_examples
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_graph_examples [2020/01/18 12:36] – serge | kivy_graph_examples [2020/10/28 12:17] (Version actuelle) – ↷ Liens modifiés en raison d'un déplacement. serge | ||
|---|---|---|---|
| Ligne 3: | Ligne 3: | ||
| **{{tagpage> | **{{tagpage> | ||
| **[[http:// | **[[http:// | ||
| + | </ | ||
| + | <WRAP center round box 40% centeralign> | ||
| + | **[[les_pages_kivy_en_details|Les pages Kivy en détails]]** | ||
| </ | </ | ||
| - | Retour à [[kivy_garden|Kivy Garden]] | + | Retour à **[[kivy_garden|Kivy Garden]]** |
| =====Ressources===== | =====Ressources===== | ||
| * Cet exemple est instiré de **[[https:// | * Cet exemple est instiré de **[[https:// | ||
| - | * [[kivy_plyer|La page du wiki sur plyer]] | + | |
| + | * **[[https:// | ||
| + | * **[[https:// | ||
| + | Les exemples sont disponible dans le projet Smart Citizen: https:// | ||
| =====Exemple très simple===== | =====Exemple très simple===== | ||
| - | Pour expliquer, inutile d' | + | Pour expliquer, inutile d' |
| + | |||
| + | {{ media_06: | ||
| <code python graphexemple.py> | <code python graphexemple.py> | ||
| Ligne 41: | Ligne 49: | ||
| super().__init__(**kwargs) | super().__init__(**kwargs) | ||
| - | print([type(widget) for widget in self.walk(loopback=True)]) | ||
| plot = MeshLinePlot(color=[1, | plot = MeshLinePlot(color=[1, | ||
| plot.points = [(x, sin(x / 10.)) for x in range(0, 101)] | plot.points = [(x, sin(x / 10.)) for x in range(0, 101)] | ||
| + | |||
| + | # Recherche des widgets | ||
| + | print([type(widget) for widget in self.walk(loopback=True)]) | ||
| # Appel du widget avec l'id graph | # Appel du widget avec l'id graph | ||
| Ligne 68: | Ligne 78: | ||
| size_hint_y: | size_hint_y: | ||
| id: graph | id: graph | ||
| + | background_color: | ||
| + | border_color: | ||
| xlabel: ' | xlabel: ' | ||
| ylabel: ' | ylabel: ' | ||
| Ligne 84: | Ligne 96: | ||
| </ | </ | ||
| - | {{tag> | + | =====Le même exemple avec la sinusoïde qui glisse===== |
| + | * **[[https:// | ||
| + | |||
| + | |||
| + | {{tag> kivy python | ||
| + | |||
kivy_graph_examples.1579350990.txt.gz · Dernière modification : de serge
