diff --git a/main.py b/main.py index 8a98c9a..d750b06 100644 --- a/main.py +++ b/main.py @@ -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 @@ -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 @@ -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"): @@ -58,4 +58,4 @@ def build(self): self.theme_cls.accent_palette = "Gray" self.theme_cls.accent_hue="A700" -TestApp().run() \ No newline at end of file +TestApp().run()