2014-12-13 17:57:33 +00:00
|
|
|
#<MyLabel@Label>:
|
|
|
|
# text: 'Current Temperature: n/a'
|
2014-12-11 03:38:40 +00:00
|
|
|
|
2014-12-13 17:57:33 +00:00
|
|
|
#<PlotWidget@Image>:
|
|
|
|
# allow_stretch: True
|
|
|
|
|
|
|
|
#<SerialPortDropdown@DropDown>:
|
|
|
|
|
|
|
|
#<SerialPortButton@Button>:
|
2014-12-10 22:22:52 +00:00
|
|
|
|
|
|
|
<MainWindow>:
|
|
|
|
label_wid: "Temperature Monitor"
|
2014-12-13 17:57:33 +00:00
|
|
|
current_temperature: current_temperature
|
|
|
|
serial_chooser_button: serial_chooser_button
|
|
|
|
on_dataSources: serial_chooser_dropdown.on_dataSources(self.dataSources)
|
|
|
|
on_lastTemperature: current_temperature.on_temperature_change(self.lastTemperature)
|
|
|
|
on_lastTemperature: mainplot.on_lastTemperature(self.lastTemperature)
|
|
|
|
on_lastTime: mainplot.on_lastTime(self.lastTime)
|
2014-12-10 22:22:52 +00:00
|
|
|
BoxLayout:
|
2014-12-13 17:57:33 +00:00
|
|
|
id: 'top_menu'
|
|
|
|
size_hint_y: 0.1
|
|
|
|
pos_hint: {'top':1}
|
|
|
|
orientation: 'horizontal'
|
|
|
|
MyLabel:
|
|
|
|
id: current_temperature
|
|
|
|
Button:
|
|
|
|
text: 'Start/Stop'
|
|
|
|
Label:
|
|
|
|
text: 'No File Chosen'
|
|
|
|
SerialPortButton:
|
|
|
|
id: serial_chooser_button
|
|
|
|
dropdown: serial_chooser_dropdown.__self__
|
|
|
|
on_release: serial_chooser_dropdown.open(self)
|
|
|
|
SerialPortDropdown:
|
|
|
|
id: serial_chooser_dropdown
|
|
|
|
data:
|
|
|
|
on_serial_port_changed: serial_chooser_button.serial_port_selected(self.data)
|
|
|
|
on_serial_port_changed: root.serial_port_changed(self.data)
|
|
|
|
PlotWidget:
|
|
|
|
size_hint_y: 0.9
|
|
|
|
id: mainplot
|
|
|
|
|
|
|
|
MainWindow:
|