while evtloop.Pending(): evtloop.Dispatch()