Begin and End Move Event Binding

Judging by this page, I should be able to bind events to the beginning and end of a user dragging a frame around with…
self.Bind(wx.EVT_MOVE_END, self.onMoveEnd)
…but I get the error “AttributeError: ‘module’ object has no attribute ‘EVT_MOVE_END’”
I have a subordinate window from another application that needs to maintain it’s position relative to a wx frame, and I am using pywin32 to control it’s position. However if I simply bind the position update to EVT_MOVE, I get staggered movement.
My proposed solution was to hide the subordinate window on EVT_MOVE_START and then update its position on EVT_MOVE_END. Is there a way to solve this error or perhaps a better way to deal with this problem?

···

View this message in context: Begin and End Move Event Binding

Sent from the wxPython-users mailing list archive at Nabble.com.

womesiete wrote:

Judging by this
<http://docs.wxwidgets.org/trunk/classwx_move_event.html&gt; page, I should
be able to bind events to the beginning and end of a user dragging a
frame around with... self.Bind(wx.EVT_MOVE_END, self.onMoveEnd) ...but I
get the error "AttributeError: 'module' object has no attribute
'EVT_MOVE_END'"

Probably because you are using wxPython 2.8 and those events were added in 2.9.

···

--
Robin Dunn
Software Craftsman

Thank you, upgrading to the development release solved the problem.

···

--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/Begin-and-End-Move-Event-Binding-tp5716200p5716219.html
Sent from the wxPython-users mailing list archive at Nabble.com.