def ouvrir_gps(self): dialog = MDDialog(title="Erreur GPS", text="Vous devez autoriser l'acces GPS" ) #fenêtre de dialogue qui demande l'activation GPS dialog.size_hint = [.8, .8] dialog.pos_hint = {'center_x': .5, 'center_y': .5} dialog.open()
def open_gps_access_popup(self): dialog = MDDialog( title="GPS Error", text= "You need to enable GPS access for the app to function properly") dialog.size_hint = [.8, .8] dialog.pos_hint = {'center_x': .5, 'center_y': .5} dialog.open()
def permission_status(self, general_status, status_message): if general_status == "provider-enabled": pass else: popup = MDDialog(title="GPS Permissions Error", text="This applications needs GPS permissions") popup.size_hint = [.8, .8] popup.pos_hint = {"center_x:": .5, "center_y": .5} popup.open()
def clear_dialog(self, instance): if EVENTS['EDITOR_SAVED']: self.clear() elif EVENTS['IS_RAM_EMPTY']: toast('There is nothing to clear') else: dialog = MDDialog( title='Warning', text='Are you sure you want to clear without saving?', size_hint=(.3, .3), text_button_ok='Clear', text_button_cancel='Cancel', events_callback=self.clear_decision) if self.dpi >= 192: dialog.pos_hint = {'x': dp(0.18), 'y': dp(0.18)} dialog.open()
def open_gps_access_popup(self): dailouge = MDDialog(title="GPS OFF", text="Enable The F*****g GPS!") dailouge.size_hint = [0.8, 0.8] dailouge.pos_hint = {"center_x": 0.5, "center_y": 0.5} dailouge.open()
def open_gps_access_popup(self): dialog = MDDialog(title="Ошибка GPS", text="Нужно включить gps module") dialog.size_hint = [.8, .8] dialog.pos_hint = {'center_x': .5, 'center_y': .5} dialog.open()
def open_gps_access_popup(self): dialog = MDDialog(title="GPS Error", text="Allume ton GPS!") dialog.size_hint = [.8, .8] dialog.pos_hint = {'center_x': .5, 'center_y': .5} dialog.open()
def open_gps_access_popup(self): dialog = MDDialog(title= 'Erreur GPS', text="Tu dois activer ta localisation GPS :(") dialog.size_hint = [.8, .8] dialog.pos_hint = {'center_x': .5, 'center_y': .5} dialog.open()
def open_gps_access_popup(self): dialog = MDDialog(title='GPS Error', text='Enable GPS Access') dialog.size_hint = [.8, .8] dialog.pos_hint = {'center_x': .5, 'center_y': .5} dialog.open()
def open_gps_access_popup(self): dialog = MDDialog(title="GPS Error", text="You need to enable Gps access for app to work") dialog.size_hint = [.8, .8] dialog.pos_hint = {'center_x': .5, 'center_y': .5} dialog.open()