Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #: import main kivytut
- #: import ListAdapter kivy.adapters.listadapter.ListAdapter
- #: import ListItemButton kivy.uix.listview.ListItemButton
- <CustomPopup>:
- size_hint: .5, .5
- bluelist: blue_list #Talves tenha dado certo :/
- title: "Dispositivos Disponiveis"
- ListView:
- id: blue_list
- adapter: ListAdapter(data= root.search(), cls = main.BlueApp)
- <Minibutton@Button>:
- size_hint_x: .2
- SampBoxLayout:
- <SampBoxLayout>:
- #bluelist: blue_list
- rows: 5
- padding: 10
- spacing: 10
- BoxLayout:
- size_hint_y: .2
- Minibutton:
- text: "Farol\nFrontal"
- #on_press: root.Light_on() if root.on is 'False' else root.Light_off()
- Minibutton:
- text: "Farol\nTraseiro"
- Minibutton:
- text: "Buzina"
- on_press: root.Buzzer()
- on_release: root.No_Buzzer()
- Minibutton:
- text: "Bluetooth"
- on_press: root.open_popup()
- Minibutton:
- text: "Servidor"
- BoxLayout:
- orientation: "vertical"
- Label:
- text: "VELOCIDADE"
- color: 0, 0, 0, 1
- Label:
- text: str(slider_id.value)
- color:0, 0, 0, 1
- Slider:
- id: slider_id
- min: 0
- max: 100
- value: 0
- step: 10
- on_value: root.Speed(slider_id.value)
- BoxLayout:
- orientation: "horizontal"
- BoxLayout:
- size_hint_x: .25
- orientation: "vertical"
- Button:
- text: "CIMA"
- on_press:root.Forward()
- Button:
- text: "BAIXO"
- on_press: root.Back()
- BoxLayout:
- size_hint_x: .25
- Image:
- source: "truelove.png" # Imagem provisoria qq
- BoxLayout:
- size_hint_x:.30
- orientation: "horizontal"
- Button:
- text: "ESQUERDA"
- on_press: root.Left()
- Button:
- text: "DIREITA"
- on_press: root.Right()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement