from kivy.app import App
from kivy.uix.widget import Widget
from kivy.clock import Clock


class MyW(Widget):
    def __init__(self):
        super().__init__()
        self.counter = 0

    def my_callback(self, dt):
        self.ids.label.text = "-{}---{}-".format(self.counter, str(dt))
        self.counter += 1

    def on_touch_down(self, touch):
        trigger = Clock.create_trigger(self.my_callback)
        if touch.is_double_tap:
            trigger()


class triggerApp(App):
    def build(self):
        return MyW()


if __name__ == '__main__':
    triggerApp().run()

69db3509c59a4d52680d5a189466339c4f4cbab9
<mask token>


class MyW(Widget):
    <mask token>

    def my_callback(self, dt):
        self.ids.label.text = '-{}---{}-'.format(self.counter, str(dt))
        self.counter += 1
    <mask token>


class triggerApp(App):

    def build(self):
        return MyW()


<mask token>

<mask token>


class MyW(Widget):

    def __init__(self):
        super().__init__()
        self.counter = 0

    def my_callback(self, dt):
        self.ids.label.text = '-{}---{}-'.format(self.counter, str(dt))
        self.counter += 1
    <mask token>


class triggerApp(App):

    def build(self):
        return MyW()


<mask token>

<mask token>


class MyW(Widget):

    def __init__(self):
        super().__init__()
        self.counter = 0

    def my_callback(self, dt):
        self.ids.label.text = '-{}---{}-'.format(self.counter, str(dt))
        self.counter += 1

    def on_touch_down(self, touch):
        trigger = Clock.create_trigger(self.my_callback)
        if touch.is_double_tap:
            trigger()


class triggerApp(App):

    def build(self):
        return MyW()


if __name__ == '__main__':
    triggerApp().run()

from kivy.app import App
from kivy.uix.widget import Widget
from kivy.clock import Clock


class MyW(Widget):

    def __init__(self):
        super().__init__()
        self.counter = 0

    def my_callback(self, dt):
        self.ids.label.text = '-{}---{}-'.format(self.counter, str(dt))
        self.counter += 1

    def on_touch_down(self, touch):
        trigger = Clock.create_trigger(self.my_callback)
        if touch.is_double_tap:
            trigger()


class triggerApp(App):

    def build(self):
        return MyW()


if __name__ == '__main__':
    triggerApp().run()

from kivy.app import App
from kivy.uix.widget import Widget
from kivy.clock import Clock


class MyW(Widget):
    def __init__(self):
        super().__init__()
        self.counter = 0

    def my_callback(self, dt):
        self.ids.label.text = "-{}---{}-".format(self.counter, str(dt))
        self.counter += 1

    def on_touch_down(self, touch):
        trigger = Clock.create_trigger(self.my_callback)
        if touch.is_double_tap:
            trigger()


class triggerApp(App):
    def build(self):
        return MyW()


if __name__ == '__main__':
    triggerApp().run()
