On May 16, 6:09 pm, bht <
brian.t...@anl.gov> wrote:
> The EVT_SIZE event does not have that method. I presume the various mouse
> events do, but how do I correlate a mouse event with a frame event or
> determine which mouse events are doing a Frame resize?
Try this:
in the method bound to EVT_SIZE:
query for left mouse button down with:
mousevt = wx.GetMouseState()
# print dir(mousevt)
leftdown = mousevt.LeftDown()
leftdown will be True if the border had been dragged or the header had
been double clicked. In other cases like clicking minimize/maximize/
using wx.Frame.SetSize((w, h)) leftdown will be false. This works at
least at Windows.