Exemplo n.º 1
0
 def on_touch_down(self, touch):
     #create an user defined variable and add the touch coordinates 
     
     touch.ud['gesture_path'] = [(touch.x, touch.y)]    
     super(GestureBox, self).on_touch_down(touch)
     if platform == "android":
         orientation.set_sensor(mode='any')
Exemplo n.º 2
0
    try:
        import six.moves.urllib
    except ImportError:
        pass

    import kivy
    kivy.require('1.9.2')

    from kivy.config import Config
    Config.set('kivy', 'keyboard_mode', 'system')
    Config.set('kivy', 'log_enable', 0)

    from kivy import platform
    if platform == 'android':
        from plyer import orientation
        orientation.set_sensor(mode='any')

    from kivymd.theming import ThemeManager
    # Activity баг репорта.
    from bugreporter import BugReporter
except Exception:
    traceback.print_exc(file=open(os.path.join(directory, 'error.log'), 'w'))
    sys.exit(1)

__version__ = '0.0.1'


def main():
    def create_error_monitor():
        class _App(App):
            theme_cls = ThemeManager()