[wxPython-users] Re: Move event will not be performed

Robin Dunn robin at alldunn.com
Fri Mar 7 18:15:04 PST 2008


Franz Steinhaeusler wrote:
> On Thu, 06 Mar 2008 16:20:03 -0800, Robin Dunn <robin at alldunn.com> wrote:
> 
>> Franz Steinhäusler wrote:
>>> On Wed, 05 Mar 2008 15:24:36 -0800, Robin Dunn <robin at alldunn.com> wrote:
>>>
>>>> Franz Steinhaeusler wrote:
>>>>> Hello, how is it possible to send to an object (here a frame) an Move Event.
>>>>>
>>>>> The print statements outputs the same values (if the frame is dragged or the move event is called
>>>>> on the end of __init__, but nothing happens. What is wrong here?
>>>>>
>>>> Platform and version?  What are you expecting to happen?
>>> MSW, 2.8.?.?
>>>
>>> It was only a test, if I can move the frame, when sending the event *instead *of call Move.
>> Ah, I see.  The EVT_MOVE event doesn't cause the move to happen, it is 
>> only a notification that the move has already happened.
> 
> Thank, but is it possible to move a window sending an event? Or change the size then?
> SendSizeEvent() only delivers a sizeevent, but I cannot specify a size itself.
> 

No, most events in wx are notifications that something has happened, or 
that something needs to be done, but events don't necessarily cause 
something to happen (except for whatever is in any bound event handlers 
of course.)  Instead you'll need to call the specific methods that do 
cause the changes to happen.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list