[wxruby-users] File system event ?
Svend Haugaard Sørensen
shs at demosophia.net
Thu Jul 1 10:59:21 EDT 2010
I am making a little TaskBar app, whos task it is to monitor a file and
change icon when the file is updated.
First is there any way to catch a file change event direct in WxRuby?
Does WxRuby have a way to catch system event directly?
If I can't do it in WxRuby, how do I then combine the RInotify package
Exactly where do I put the rinotify.wait_for_events call ?
Is there some way to a it to the App.main_loop ?
Or should put it in a evt_idle? This might slow down UI.
Or should I try to figure out how to make a separate thread that
could wait and then generate a custom event.
So what do you think, have any of you tried any thing like it before?
PS. I am working on a linux box.
More information about the wxruby-users