From: Scott B. <sc...@go...> - 2001-09-22 19:34:53
|
Hi, I am writting a patch for POE to work with the Wx event loop and ran into a small snag. Does Wx currently have the ability to check for data on a file descriptor? I found Wx::InputStream looking through the code but I can not find any examples of it's usage. I looked through the wxwindows site and found: wxInputStream is an abstract base class which may not be used directly. Which it appears this Wx::InputStream is suppose to be an implimention of. Any help with examples or explaination of usage will be very appreciated. Cheers, Scott -- -------------------- Gossamer Threads Inc. ---------------------- Scott Beck Email: sc...@go... Lead Software Developer Phone: (604) 687-5804 http://www.gossamer-threads.com Fax: (604) 687-5806 |
From: Jouke V. <jo...@pv...> - 2001-09-22 19:39:37
|
Hi Scott, Mattia might have an answer to this question, but if not, you might try to ask this question on the wxWindows mailinglist, because it seems it is more related to the wxWindows API than wxPerl specifically. But great work you're doing here with the POE patch! Jouke Visser On Sat, Sep 22, 2001 at 12:31:49PM -0600, Scott Beck wrote: > Hi, > > I am writting a patch for POE to work with the Wx event loop and > ran into a small snag. Does Wx currently have the ability to check > for data on a file descriptor? I found Wx::InputStream looking > through the code but I can not find any examples of it's usage. > I looked through the wxwindows site and found: > wxInputStream is an abstract base class which may not be used directly. > > Which it appears this Wx::InputStream is suppose to be an implimention > of. > > Any help with examples or explaination of usage will be > very appreciated. > > Cheers, > > Scott > > -- > -------------------- Gossamer Threads Inc. ---------------------- > Scott Beck Email: sc...@go... > Lead Software Developer Phone: (604) 687-5804 > http://www.gossamer-threads.com Fax: (604) 687-5806 > > > > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users > -- *-----------------------------------------------* |Jouke Visser |jo...@pv... | |Perl GUI Geek |http://www.pvoice.org | *-----------------------------------------------* PS: Notice new mailaddress!! |
From: Scott B. <sc...@go...> - 2001-09-22 22:15:22
|
On Sat, 2001-09-22 at 13:43, Jouke Visser wrote: > Hi Scott, > > Mattia might have an answer to this question, but if not, you might try > to ask this question on the wxWindows mailinglist, because it seems it > is more related to the wxWindows API than wxPerl specifically. > Thanks, I will subscript to that list too :) Are all the functions/classes available in the perl API? > But great work you're doing here with the POE patch! > Thanks! I love POE and Wx looks to be the upcoming GUI for perl. It looks much nicer than Tk and is portable, what more can you ask! > -- > *-----------------------------------------------* > |Jouke Visser |jo...@pv... | > |Perl GUI Geek |http://www.pvoice.org | > *-----------------------------------------------* > PS: Notice new mailaddress!! > > _______________________________________________ Cheers, Scott -- -------------------- Gossamer Threads Inc. ---------------------- Scott Beck Email: sc...@go... Lead Software Developer Phone: (604) 687-5804 http://www.gossamer-threads.com Fax: (604) 687-5806 |
From: Scott B. <sc...@go...> - 2001-09-22 23:28:30
|
Hi Mattia, > > Are all the functions/classes available in the perl API? > In fact *no one* is available (directly), but it is not difficult to > wrap them. The point is that wxStreams are of any use in wxWindows > ( C++ ), because > 1 - at the time they were written STL ( Standard Template Library, > the C++ standard library ) was much less widely available > than it is now > 2 - they have some Value Added ( like wxSocketStreams, > wxZlibStreams... ) > > I did not care to wrap them because most of what they provide > is available in perl ( maybe through CPAN modules ), > so there is little to gain in using them ( apart from the > nice wx prefix, I mean ;-) ) > The main problem I am having right now is POE depends on the event loop for which it is supporting for IO events such as knowing when data is available on an FD. In Gtk it uses Gtk::Gdk->input_add and Gtk::Gdk->input_remove which allows it to set up events based on weather an FD has stuff waiting or is ready to recieve data. I will do some more research and see if there is a way to work- around the lack of IO events. Thanks a lot for your time. Cheers, Scott -- -------------------- Gossamer Threads Inc. ---------------------- Scott Beck Email: sc...@go... Lead Software Developer Phone: (604) 687-5804 http://www.gossamer-threads.com Fax: (604) 687-5806 |