Doc: update images/gif's to reflect latest theme for kivy

This commit is contained in:
Qua-non 2012-10-01 02:30:58 +05:30
parent 7290ae7c76
commit 71ebe6c6e5
14 changed files with 21 additions and 8 deletions

View File

@ -108,7 +108,7 @@ Examples
.. |wdg_file2| replace:: asyncimage.py
.. |wdg_desc2| replace:: Usage and Showcase of :class:`AsyncImage <kivy.uix.image.AsyncImage>` Widget.
.. |wdg_file25| replace:: boxlayout_pos_hint.py
.. |wdg_desc25| replace:: Usage and Showcase of :class:`BoxLayout <kivy.uix.boxlayout>`
.. |wdg_desc25| replace:: Showcase of pos_hint under BoxLayout :class:`BoxLayout <kivy.uix.boxlayout>`
.. |wdg_file3| replace:: bubble_test.py
.. |wdg_desc3| replace:: Usage and Showcase of :class:`Bubble <kivy.uix.bubble>` Widget.
.. |wdg_file4| replace:: customcollide.py
@ -120,7 +120,11 @@ Examples
.. |wdg_file7| replace:: keyboardlistener.py
.. |wdg_desc7| replace:: listen to the keyboard input and spew result to console.
.. |wdg_file8| replace:: label_mipmap.py
.. |wdg_desc8| replace:: How to use :class:`Label <kivy.uix.label>` widget with mipmap.
.. |wdg_desc8| replace:: How to use :class:`Label <kivy.uix.label>` widget with
.. |wdg_file81| replace:: label_with_markup.py
.. |wdg_desc81| replace:: Useage of :class:`Label <kivy.uix.label>` widget with markup.
.. |wdg_file82| replace:: popup_with_kv.py
.. |wdg_desc82| replace:: Useage of :class:`Popup <kivy.uix.popup>` widget with ``kv`` language
.. |wdg_file9| replace:: rstexample.py
.. |wdg_desc9| replace:: Usage and Showcase of :class:`RstDocument <kivy.uix.rst.RstDocument>` Widget.
.. |wdg_file10| replace:: scatter.py
@ -207,6 +211,8 @@ Examples
| | - |wdg_file6| |- |wdg_desc6| |
| | - |wdg_file7| |- |wdg_desc7| |
| | - |wdg_file8| |- |wdg_desc8| |
| | - |wdg_file81||- |wdg_desc81| |
| | - |wdg_file82||- |wdg_desc82| |
| | - |wdg_file9| |- |wdg_desc9| |
| | - |wdg_file10||- |wdg_desc10| |
| | - |wdg_file11||- |wdg_desc11| |

Binary file not shown.

Before

Width:  |  Height:  |  Size: 859 KiB

After

Width:  |  Height:  |  Size: 554 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 314 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 406 KiB

After

Width:  |  Height:  |  Size: 795 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 644 KiB

After

Width:  |  Height:  |  Size: 764 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -16,6 +16,7 @@ from kivy.properties import StringProperty
from kivy.clock import Clock
import random
class Showcase(FloatLayout):
pass
@ -60,6 +61,7 @@ class BoxLayoutShowcase(FloatLayout):
super(BoxLayoutShowcase, self).__init__(**kwargs)
self.buttons = 0
self.txt = 'horizontal'
self.text_size = self.size
Clock.schedule_once(self.add_button, 1)
def add_button(self, *l):
@ -71,7 +73,10 @@ class BoxLayoutShowcase(FloatLayout):
self.txt = self.blayout.orientation = 'horizontal'
else:
self.txt = self.blayout.orientation = 'vertical'
self.blayout.add_widget(Button(text = self.txt))
btn = Button(text=self.txt, halign='center', valign='middle')
btn.bind(size=btn.setter('text_size'))
self.blayout.add_widget(btn)
Clock.schedule_once(self.add_button, 1)
@ -87,9 +92,9 @@ class FloatLayoutShowcase(FloatLayout):
if self.buttons > 5:
self.buttons = 0
self.flayout.clear_widgets()
self.flayout.add_widget(Button(text = 'no restrictions\n what so ever',
size_hint = (None, None), size = (150, 40),
pos_hint = {'x':random.random(), 'y': random.random()}))
self.flayout.add_widget(Button(text='no restrictions\n what so ever',
size_hint=(None, None), size=(150, 40),
pos_hint={'x': random.random(), 'y': random.random()}))
Clock.schedule_once(self.add_button, 1)
@ -106,7 +111,7 @@ class GridLayoutShowcase(FloatLayout):
def add_button(self, *l):
self.buttons += 1
if self.buttons > 20:
if self.buttons > 10:
self.buttons = 0
self.glayout.clear_widgets()
if self.txt == "rows = 3":
@ -117,7 +122,7 @@ class GridLayoutShowcase(FloatLayout):
self.glayout.rows = 3
self.glayout.cols = 7
self.txt = "rows = 3"
self.glayout.add_widget(Button(text = self.txt))
self.glayout.add_widget(Button(text=self.txt))
Clock.schedule_once(self.add_button, 1)
@ -157,9 +162,11 @@ class StandardWidgets(FloatLayout):
class ComplexWidgets(FloatLayout):
pass
class TreeViewWidgets(FloatLayout):
pass
class ShowcaseApp(App):
def on_select_node(self, instance, value):