Permalink
Browse files

Example 44: Draw a rectangle directly on the canvas.

The rectangle's size is bound to the size of the widget, so no matter how the window is resized, the entire background is painted.
  • Loading branch information...
1 parent ab56e90 commit a19ff67e1c8ff8c4d4f581b9180f0ebc2d8ab9de Dusty Phillips committed Jul 11, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 orkiv/orkiv.kv
View
@@ -46,6 +46,12 @@ OrkivRoot:
<BuddyListItem>:
size_hint_y: None
height: "40dp"
+ canvas.before:
+ Color:
+ rgba: self.background
+ Rectangle:
+ pos: self.pos
+ size: self.size
Label:
text: root.jabberid
Label:

0 comments on commit a19ff67

Please sign in to comment.