logo       
Google Custom Search
    AddThis Social Bookmark Button

constructing Wx::Events (and IPC in general): msg#00044

Subject: constructing Wx::Events (and IPC in general)
I'm writing a small application that uses LWP::UserAgent with a
callback function to retrieve streaming data from a server, and I want
to display this data in a Wx gui. I made two threads, one running the
LWP::UserAgent::request, and one doing the wxPerl GUI. As I understand
it, I'm not allowed to touch the GUI from the LWP thread, so I'm
trying to get some interthread communication going by calling 
AddPendingEvent on my Wx::App. 

This obviously takes an event object as a parameter, yet I can't find
out how to construct a Wx::Event: There isn't a Wx::Event->new() by
the looks of it.

Could someone suggest how to handle this? (Suggestions for other
approaches are most welcome too, my experience with GUI programming is
limited.)

-- 
Frank v Waveren                                      Fingerprint: BDD7 D61E
fvw@[var.cx|stack.nl] ICQ#10074100                      5D39 CF05 4BFC F57A
Public key: hkp://wwwkeys.pgp.net/468D62C8              FA00 7D51 468D 62C8

Attachment: signature.asc
Description: Digital signature


Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>