Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #:import random random
- <CustButton@Button>:
- font_size: 32
- BoxLayout:
- orientation: 'horizontal'
- BoxLayout:
- orientation: 'vertical'
- Logo:
- GridLayout:
- cols: 1
- rows: 4
- BoxLayout:
- orientation: 'vertial'
- Header:
- GridLayout:
- CalcGridLayout:
- canvas.before:
- Rectangle:
- source: 'lights.jpg'
- pos: self.pos
- size: self.size
- id: calculator
- rows: 8
- padding: 0
- spacing: 0
- BoxLayout:
- spacing: 0
- CustButton:
- on_press:
- self.background_down= random.choice(["images/track/horizontal.png","images/track/cross.png"])
- background_normal: "images/track/cross.png"
- background_color: (1,1,1,1)
- CustButton:
- on_press:
- self.background_down= random.choice(["images/track/horizontal.png","images/track/cross.png"])
- background_normal: "images/track/cross.png"
- background_color: (1,0,0,1)
- CustButton:
- on_press: progress_bar.value += 1
- CustButton:
- on_press: progress_bar.value += 1
- BoxLayout:
- spacing: 0
- CustButton:
- on_press: entry.text += self.text
- Image:
- source: "images/track/vertical.png"
- y: self.parent.y + self.parent.height - 100
- x: self.parent.x
- size: 100, 100
- allow_stretch: True
- CustButton:
- on_press: progress_bar.value += 1
- CustButton:
- on_press: progress_bar.value += 1
- CustButton:
- on_press: progress_bar.value += 1
- BoxLayout:
- spacing: 0
- CustButton:
- on_press: progress_bar.value += 1
- CustButton:
- on_press: progress_bar.value += 1
- CustButton:
- on_press: progress_bar.value += 1
- CustButton:
- on_press: progress_bar.value += 1
- BoxLayout:
- spacing: 0
- CustButton:
- on_press: progress_bar.value += 1
- CustButton:
- on_press: progress_bar.value += 1
- CustButton:
- on_press: progress_bar.value += 1
- CustButton:
- on_press: progress_bar.value += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement