what event must I post to close a frame from a thread?

Hi,

Pretty newbie question. I'd like to send wx.CloseEvent to a frame using wx.PostEvent from a thread.
For custom built events, I use, for example:

export_image, EVT_EXPORT_IMAGE = NewEvent()

and then i write

wx.PostEvent(frame, export_image)

But for a standard wx event, what is the correct argument? wx.PostEvent(frame, wx.CloseEvent) seems not correct.

Thanks,
Massimo

···

--
Massimo Sandal
University of Bologna
Department of Biochemistry "G.Moruzzi"

snail mail:
Via Irnerio 48, 40126 Bologna, Italy

email:
massimo.sandal@unibo.it

tel: +39-051-2094388
fax: +39-051-2094387