Thursday, 15 September 2011

python - How to write a handler for window move event in Kivy? -



python - How to write a handler for window move event in Kivy? -

i'd write handler event after window moved in windows / linux.

i need such function reset behaviour of app because dragging of window stop/pause clock.schedules , after window released animation schedule not starting properly. wrong behaviour during window move no problem afterwards app should restart correctly.

something simillar code window resize:

class demoapp(app): def build(self): def win_cb(window, width, height): print 'resizing' window.bind(on_resize=win_cb)

is there on_move? haven't seen in api-documentation

no, there no way current window position in kivy. may possible straight utilizing window backend (i.e. pygame) not cross-platform compatible , quite hacky.

however, you're having other problem here. animations , clock schedules both work fine me while moving , resizing window. might want post question asking why schedules getting screwed up, because not expected behavior.

python windows events kivy

No comments:

Post a Comment