0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

kivy-iosメモ kivy v1.9.0-dev URL連携(MAC)

Posted at

新しいもので行う方法(まだ、開発版なので変わる可能性あり)。

1.呼び出し編

kivy v1.8.0と同様に実行可能である。

2.呼び出され編

基本的にkivy v1.8.0と同様であるが、修正するソースの箇所が違う。

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       <--- 追加
                app = App.get_running_app()    <--- 追加
                dropfile = args
                app.dispatch('on_dropfile', dropfile[0]) <--- 修正
# 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)
        .
        .
        .

・kivy/kivy/app.pyについては、kivy v1.8.0と同様に修正する。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?