Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
inclement committed Jan 1, 2014
1 parent 717792f commit 9cf46d7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.rst
Expand Up @@ -17,6 +17,7 @@ You can find a youtube video with all the Kivy Crash Course videos at https://ww
- Video 3: More interesting widget interactions - https://www.youtube.com/watch?v=-NvpKDReKyg
- Video 4: Kivy language - https://www.youtube.com/watch?v=ZVWAKzR63ig
- Video 5: Mixing python and kivy language - https://www.youtube.com/watch?v=ZmteLworB4E
- Video 6: Kivy properties - https://www.youtube.com/watch?v=OkW-1uzP5Og

Plans
=====
Expand All @@ -25,7 +26,6 @@ The following are my direct plans for the next few videos and general ideas for

Next videos:

- Video 6: Mixing python and kv via kivy properties
- Video 7: Drawing on the kivy canvas
- Video 6.5 or 7.5 (interlude): The Label widget (via scrollable label)

Expand All @@ -36,3 +36,4 @@ Future topics:
- Using android apis via p4a
- Creating a kivy settings panel
- Creating a standalone package via pyinstaller

4 changes: 2 additions & 2 deletions video6-kivy_properties/after.py
Expand Up @@ -7,12 +7,12 @@
from kivy.uix.textinput import TextInput
from kivy.uix.boxlayout import BoxLayout

from kivy.properties import ListProperty
from kivy.properties import ListProperty, ObjectProperty

import random

class ScatterTextWidget(BoxLayout):
text_colour = ListProperty([1, 0, 0, 1])
text_colour = ObjectProperty([1, 0, 0, 1])

def change_label_colour(self, *args):
colour = [random.random() for i in xrange(3)] + [1]
Expand Down
20 changes: 20 additions & 0 deletions video6-kivy_properties/tutorial.kv
Expand Up @@ -14,4 +14,24 @@
id: my_label
text: my_textinput.text
font_size: 150
color: root.text_colour
BoxLayout:
orientation: 'horizontal'
size_hint_y: None
height: 150
Label:
id: label1
text: my_textinput.text[:3][::-1]
font_size: 100
color: root.text_colour
Label:
id: label2
text: my_textinput.text[-3:][::-1]
font_size: 100
color: root.text_colour
TextInput:
id: ti
text: '0.2'
on_text: root.text_colour[1] = float(self.text)


0 comments on commit 9cf46d7

Please sign in to comment.