From 9febb65dab8ec8fc37938fef0e7b74f9a8d03926 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Sat, 24 Nov 2018 10:44:23 -0500 Subject: [PATCH] Uncomitted changes --- images/menu button/menu_button.xcf | Bin 0 -> 4519 bytes images/menu_button.png | Bin 0 -> 847 bytes main.kv | 5 +++++ main.py | 7 +++++++ 4 files changed, 12 insertions(+) create mode 100644 images/menu button/menu_button.xcf create mode 100644 images/menu_button.png diff --git a/images/menu button/menu_button.xcf b/images/menu button/menu_button.xcf new file mode 100644 index 0000000000000000000000000000000000000000..a00cbceaaddb32c0ec7032b63cca2d0dbc7f4daa GIT binary patch literal 4519 zcmeHKOHUI~7`=T>OG^t36pXT%fV^TrP@oD31dL!rB{7uQmNFeC^g-GZU^Pv2uR9n1 z1oy5m!QX)Kcerpvq1N-=I|C)+VoVfc`I6J`^n2WU=ibhlscvMpl-*=XNf~L4!Acg0 zw*W2|K3ajm+#ALSur|O81b}vnQ(YAG3-Dnb!wx2MnT(b#;ya_HJfGJRMQvT#F^U_? z!sDmQlxgOrMkb+agL>Xrrx>bTtiMp)OKVCYmp0Z1g8eBynM>#LN5uH+{f-0M3b;nIt%? z!qd4S&YLMmoU9YDdC=lCL8vC)Si{3Lya}Afr60|Gzz^7C)&5=(CUcv@pI!)R-EXnv z%K5naJ%)Kkv4`v^;&%sbuc&ubFDu^&_(tODDCluxYNv{Fp76vIF=SZ^HFhpxbkj9kmlID^z04VCr@C3YdORmd zT{wNPmGN*ZSciJD*c1`uMW08I)tDRPnp&Cm2|pv%c(klO2#U(5iY&-N$O{rx%klY9 zUjVdCJ&KP88$2D%WczhJ`SogmIfKbQ(oJ;-AO#>RS>Sj4qg-Co^SSNpI;DPBJgC=+ zcu+mrMdD$L3DVL&uR2>Ya?)og$P=SW<6&*?K-@yspYHd#&fye&ihuil{tgyYh$Lb{ck=cS{vzQ zljQoKj;D4eWF&lIzu09dis?VZan<|u&h9R{8%;l6)fk(#K)hsucxWz>-2As*J?;O~ nSY1nu)(9(E@F4aact=54NuXsDu^r$g@R|~4vooM&)&lzhiWSKS literal 0 HcmV?d00001 diff --git a/images/menu_button.png b/images/menu_button.png new file mode 100644 index 0000000000000000000000000000000000000000..520d3edf9159cdf63d7ddd382174ca32438159f3 GIT binary patch literal 847 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7uRSY)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmP~H@_&e_$HZ2O+X>Z64!_l=ltB<)VvY~=c3falGGH1 z^30M91$R&1fbd2>aRvsa?Vc`_a#&TFr?&YM49^tfU8UnY5Z`CD(xCM`LdwD9o52ghX- zOr%aqEVk&|dNXHB+7MMsC{)nyhT6?v`YHIPh`3yaV zb7I=B8~I+2o42rvyMcY*JLMOTov%hSq(-jFjrMzY?5o&;+qY-$+qZAWA=!d+D|4eG zv;T4)khpx>*}LP^rYj#SuH3yl*PhYh`Ipb14_|j+f3@q{^XKXMTH9bt-DLMwiJyIBRF28)@&cN|U7e^R>_;1L&yU^z_({U4>0-wVNOmu#* zn=VUCOqOC>miU7GvH`yVFZZ13mp5$7{rdOsS)eQT%x&AdXOD-_e1S+k0y(hUe zA9Oe-;k!I|Sz@@1-DQIxzs0adZ-HpS0bjQs%eL_P$g-$Qf=AWM`@TZoWj5GsEU{>GQudL7h(px{l R1enelJYD@<);T3K0RZ+RN1Xrw literal 0 HcmV?d00001 diff --git a/main.kv b/main.kv index 086d400..54e943c 100644 --- a/main.kv +++ b/main.kv @@ -104,6 +104,11 @@ id: 'top_menu' pos_hint: {'top':1} orientation: 'horizontal' + MainMenuButton: + id: main_menu_button + size_hint_x: 0.2 + source: "./images/menu_button.png" + on_press: root.main_menu() MyLabel: id: current_temperature text: "Current Temperature: n/a" diff --git a/main.py b/main.py index a62656b..c000335 100755 --- a/main.py +++ b/main.py @@ -13,6 +13,7 @@ import kivy.graphics.texture from kivy.graphics.texture import Texture from kivy.logger import Logger from kivy.properties import BooleanProperty, DictProperty, ListProperty, NumericProperty, ObjectProperty, StringProperty +import kivy.uix.behaviors from kivy.uix.boxlayout import BoxLayout from kivy.uix.button import Button from kivy.uix.dropdown import DropDown @@ -197,6 +198,10 @@ class MainWindow(FloatLayout): 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): #Logger.debug('Setouput file: ', str((path, file_name, args, kwargs))) # 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.dismiss() +class MainMenuButton(kivy.uix.behaviors.ButtonBehavior, Image): + pass class StatusBar(BoxLayout):