Skip to content

Commit

Permalink
Final Build(move to next)
Browse files Browse the repository at this point in the history
  • Loading branch information
NILEG authored Jul 29, 2023
1 parent 3ef2dfc commit b25631e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from kivymd.uix.anchorlayout import MDAnchorLayout
from kivymd.uix.behaviors import CommonElevationBehavior
from kivymd.uix.boxlayout import MDBoxLayout
from plyer import flash
from flash_python_file import Flash

class CustomMDAnchorLayout(ButtonBehavior, CommonElevationBehavior, MDAnchorLayout):
pass
Expand All @@ -29,7 +29,7 @@ def flash_on(self):
self.ids.flash_icon.icon="alarm-light-off"
Interface.flashstate=1
self.ids.progressbar.start()
flash.on()
Flash.on()
else:
Clock.unschedule(self.increment_seconds)
Interface.milli_seconds=0
Expand All @@ -39,7 +39,7 @@ def flash_on(self):
print("Flash Light Off")
self.ids.flash_icon.icon = "alarm-light"
self.ids.progressbar.stop()
flash.off()
Flash.off()
class TestApp(MDApp):
def change_style(self, appbar):
if(self.theme_cls.theme_style=="Light"):
Expand All @@ -58,4 +58,4 @@ def build(self):
self.theme_cls.accent_palette = "Gray"
self.theme_cls.accent_hue="A700"

TestApp().run()
TestApp().run()

0 comments on commit b25631e

Please sign in to comment.