Skip to content

Instantly share code, notes, and snippets.

@hansent
Created March 7, 2011 13:13
Show Gist options
  • Select an option

  • Save hansent/858483 to your computer and use it in GitHub Desktop.

Select an option

Save hansent/858483 to your computer and use it in GitHub Desktop.
#:kivy 1.0
#This file is part of the Kivy Cinema Kiosk Demo.
# Copyright (C) 2010 by
# Thomas Hansen <[email protected]>
# Mathieu Virbel <[email protected]>
#
# The Kivy Cinema Kiosk Demo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# The Kivy Cinema Kiosk Demo is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with The Kivy Cinema Kiosk Demo. If not, see <http://www.gnu.org/licenses/>.
<Label>:
font_name: 'Arial'
<AppScreen>:
canvas:
Color:
rgb: 0,0,0
Rectangle:
pos: self.pos
size: self.size
<FeaturedMovie>:
orientation: 'vertical'
Video:
kvid: "video"
size_hint: (1, None)
size: root.width, root.width* 3.0/4.0
canvas.before:
Color:
rgba: 0,0,0,0.7
Rectangle:
pos: self.pos
size: self.size
Label:
text: root.movie_title
font_size: 18
bold: True
padding_x: 20
size_hint: (1, None)
text_size: self.size
Label:
text: root.movie_summary
font_size: 12
padding_x: 20
text_size: self.size
<MovieScreen>:
on_touch_down: self.next_movie()
Image:
source: 'images/bg.png'
Image:
id: header_bg
source: 'images/headerbg.png'
size: self.norm_image_size
y: root.height - self.height
FeaturedMovie:
kvid: 'feature'
movie: root.app.get_random_movie()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment