Exemplo n.º 1
0
 def on_touch_down(self, touch):
     if self.collide_point(*touch.pos):
         self.pressed = touch.pos
         number = self.secondary_text
         print(number)
         tel = number
         vibrator.vibrate(.3)
         call.makecall(tel=tel)
         return True
     return super(CallerButton, self).on_touch_down(touch)
Exemplo n.º 2
0
    def timer(self, dt):
        if isTimerScreen:
            if self.count == 0:
                Clock.unschedule(self.timer)
                self.ids.countdown.font_size = 48
                self.ids.countdown.text = self.get_map_location()
                gps.stop()

                with open('phone_numbers.csv', mode='r') as phone_numbers:
                    student_reader = csv.reader(phone_numbers, delimiter=',')
                    for phone_number in student_reader:
                        if phone_number and phone_number[
                                0] is not "Please enter a phone number":
                            sms.send(phone_number[0], self.get_map_location())
                            call.makecall(phone_number[0])
            else:
                self.alarm()
                self.count -= 1
                self.ids.countdown.text = str(self.count)
Exemplo n.º 3
0
 def call(self, *args):
     call.makecall(tel=self.tel)
Exemplo n.º 4
0
 def call(self, *args):
     call.makecall(tel=self.tel)
Exemplo n.º 5
0
 def call(self):
     call.makecall(tel="12062195330")
Exemplo n.º 6
0
 def dial(self, *args):
     call.makecall('0981831510')