Facebook
From kivy, 1 Week ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 71
  1. #:import utils kivy.utils
  2.  
  3. WindowManager:
  4.  PierwszyEkran:
  5.  DrugiEkran:
  6.  TrzeciEkran:
  7.  
  8. <PierwszyEkran>:
  9.  name: "pierwszy"
  10.  BoxLayout:
  11.   orientation:'horizontal'
  12.   size: root.width, root.height
  13.   Label:
  14.    text:"PierwszyEkran"
  15.    font_size: 32
  16.   Button:
  17.    text: "Next >>"
  18.    font_size: 32
  19.    on_release:
  20.     app.root.current = "drugi"
  21.     root.manager.transition.direction = "left"
  22.    color: (0,1,0,1)
  23.    background_color: (238/250, 50/250, 0/250, 1)
  24. <DrugiEkran>:
  25.  name: "drugi"
  26.  BoxLayout:
  27.   orientation: 'vertical'
  28.   size: root.width, root.height
  29.   Label:
  30.    text: "Drugi Ekran"
  31.    font_size: 32
  32.   Button:
  33.    text: "Next >>"
  34.    font_size: 32
  35.    on_release:
  36.     app.root.current = "trzeci"
  37.     root.manager.transition.direction = "up"
  38.    color: (155/255, 250/250, 0/255,1)
  39.    background_color: utils.get_color_from_hex('#ED01DE')
  40. <TrzeciEkran>:
  41.  name: "trzeci"
  42.  BoxLayout:
  43.   orientation:"horizontal"
  44.   size: root.width, root.height
  45.   Label:
  46.    text: "TrzeciEkran"
  47.    font_size: 32
  48.   Button:
  49.    text: "Next >>"
  50.    font_size: 32
  51.    on_release:
  52.     app.root.current = "pierwszy"
  53.     root.manager.transition.direction="down"
  54.    color: (155/255, 250/250, 0/255,1)
  55.    background_color: utils.get_color_from_hex('#ED01DE')