Uncomitted changes
This commit is contained in:
parent
8e0d1a9281
commit
9febb65dab
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 847 B |
5
main.kv
5
main.kv
|
@ -104,6 +104,11 @@
|
||||||
id: 'top_menu'
|
id: 'top_menu'
|
||||||
pos_hint: {'top':1}
|
pos_hint: {'top':1}
|
||||||
orientation: 'horizontal'
|
orientation: 'horizontal'
|
||||||
|
MainMenuButton:
|
||||||
|
id: main_menu_button
|
||||||
|
size_hint_x: 0.2
|
||||||
|
source: "./images/menu_button.png"
|
||||||
|
on_press: root.main_menu()
|
||||||
MyLabel:
|
MyLabel:
|
||||||
id: current_temperature
|
id: current_temperature
|
||||||
text: "Current Temperature: n/a"
|
text: "Current Temperature: n/a"
|
||||||
|
|
7
main.py
7
main.py
|
@ -13,6 +13,7 @@ import kivy.graphics.texture
|
||||||
from kivy.graphics.texture import Texture
|
from kivy.graphics.texture import Texture
|
||||||
from kivy.logger import Logger
|
from kivy.logger import Logger
|
||||||
from kivy.properties import BooleanProperty, DictProperty, ListProperty, NumericProperty, ObjectProperty, StringProperty
|
from kivy.properties import BooleanProperty, DictProperty, ListProperty, NumericProperty, ObjectProperty, StringProperty
|
||||||
|
import kivy.uix.behaviors
|
||||||
from kivy.uix.boxlayout import BoxLayout
|
from kivy.uix.boxlayout import BoxLayout
|
||||||
from kivy.uix.button import Button
|
from kivy.uix.button import Button
|
||||||
from kivy.uix.dropdown import DropDown
|
from kivy.uix.dropdown import DropDown
|
||||||
|
@ -197,6 +198,10 @@ class MainWindow(FloatLayout):
|
||||||
self.create_popup(title="Choose outputfile", content = output_file_dialog)
|
self.create_popup(title="Choose outputfile", content = output_file_dialog)
|
||||||
|
|
||||||
|
|
||||||
|
def main_menu(self):
|
||||||
|
Logger.debug('Main menu pressed')
|
||||||
|
|
||||||
|
|
||||||
def set_output_file(self, path, file_name, *args, **kwargs):
|
def set_output_file(self, path, file_name, *args, **kwargs):
|
||||||
#Logger.debug('Setouput file: ', str((path, file_name, args, kwargs)))
|
#Logger.debug('Setouput file: ', str((path, file_name, args, kwargs)))
|
||||||
# If we're oaky with writing path + file_name + (.csv|.png)
|
# If we're oaky with writing path + file_name + (.csv|.png)
|
||||||
|
@ -548,6 +553,8 @@ class YesNoModalView(Popup):
|
||||||
self.process_callback(result, *args, **kwargs)
|
self.process_callback(result, *args, **kwargs)
|
||||||
self.dismiss()
|
self.dismiss()
|
||||||
|
|
||||||
|
class MainMenuButton(kivy.uix.behaviors.ButtonBehavior, Image):
|
||||||
|
pass
|
||||||
|
|
||||||
class StatusBar(BoxLayout):
|
class StatusBar(BoxLayout):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue