kivy-ios memo kivy v1.9.0-dev URL linkage (MAC)

How to do it with a new one (it is still a development version and may change).

1. Call

It is feasible as well as kivy v1.8.0.

2. Called

It is basically the same as kivy v1.8.0, but the source to be modified is different.

kivy/kivy/core/window/window_sdl2.py


        .
        .
        .
                self._mouse_down = True
                self.dispatch('on_mouse_down',
                    self._mouse_x, self._mouse_y, btn, self.modifiers)
                self._mouse_down = False
                self.dispatch('on_mouse_up',
                    self._mouse_x, self._mouse_y, btn, self.modifiers)

            elif action == 'dropfile':
# ADD START
                from kivy.app import App       <---add to
                app = App.get_running_app()    <---add to
                dropfile = args
                app.dispatch('on_dropfile', dropfile[0]) <---Fix
# ADD END
            # video resize
            elif action == 'windowresized':
                self._size = self._win.window_size
                # don't use trigger here, we want to delay the resize event
                cb = self._do_resize
                Clock.unschedule(cb)
                Clock.schedule_once(cb, .1)
        .
        .
        .

-For kivy / kivy / app.py, modify it in the same way as kivy v1.8.0.

Recommended Posts

kivy-ios memo kivy v1.9.0-dev URL linkage (MAC)
kivy-ios memo kivy v1.8.0 URL linkage (MAC)
kivy-ios memo kivy v1.8.0 (MAC)
kivy-ios memo kivy v1.8.0 for new toolchain (MAC)
Kivy-Android Memo (MAC)