Permalink
Browse files

Example 50: Render background_color instead of background.

Taking advantage of the background_color property attached to button widgets.
  • Loading branch information...
1 parent 27e2c89 commit 0a30ca9074b412003eb54c81ff1a3869bb691581 Dusty Phillips committed Jul 17, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 orkiv/__main__.py
View
@@ -68,7 +68,6 @@ class BuddyListItem(BoxLayout, ListItemButton):
full_name = StringProperty()
status_message = StringProperty()
online_status = StringProperty()
- background = ObjectProperty()
class BuddyList(BoxLayout):
@@ -97,9 +96,9 @@ def roster_converter(self, index, jabberid):
result['online_status'] = "offline"
if index % 2:
- result['background'] = (0, 0, 0, 1)
+ result['background_color'] = (0, 0, 0, 1)
else:
- result['background'] = (0.05, 0.05, 0.07, 1)
+ result['background_color'] = (0.05, 0.05, 0.07, 1)
return result

0 comments on commit 0a30ca9

Please sign in to comment.