python - wxPython drag and drop matplotlib figure -


i have number of wx.panels, each containing matplotlib figure (a thumbnail gallery). want user able drag , drop of these figures another, bigger panel.

what tried binding wx.evt_motion of each thumbnail panel. unfortunately, seems event consumed figure never fires.

i tried connecting 'motion_notify_event' of each figure 1 fires when mouse on particular figure.

is possible somehow disable matplotlib events, event gets panel underneath? or there solution?

you need take @ documentation , demos wx.droptarget , wx.dropsource , overview.

code examples see: samples/dnd subdirectory of wxwidgets installation or http://svn.wxwidgets.org/viewvc/wx/wxwidgets/trunk/samples/dnd

you consider adding tick box or button each thumbnail makes 1 large view.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -