Re: Question: Making a Gtk+ application interacts with octave



Hello everyone! &
Dear Mr Martinez,
I dont know if what youre looking for is, Octave-GTK+,

but have a look at this site:
http://octave-gtk.sf.net/ and our project. I hope my
project is useful for you.

For an idea see
http://octave-gtk.sourceforge.net/screenshot.html

Octave-GTK+ is a set of GTK+ bindings for Octave.
They are unstable, but work, in some hackish way.


-Alan wrote:
If you actually
patched octave to use GTK, then this isn't going to
be a problem. 
However I'm guessing you called an external GTK 
program from within
Octave, so you will need to use some form of IPC
like > sockets or pipes.

XXX SNIP XXXXXXXXXXXXXXXXX

If you really want speed, the best thing will
probably > be to patch
Octave to incorporate GTK.  I'm sure the Octave 
people will be pleased
if you do this; I know I would.
-Alem


I would suggest to you is, write 'gtk_imshow' as an 
octave extension. Then please use, this module, along
with Octave-GTK+ , and invoke your gtk_imshow()
like this


global widget;

....<SNIP>.....

widget=gtk_im_new()

....<SNIP>.....

gtk_timeout_add("timeout",1000); 
gtk_main();

....<SNIP>.....

function timeout
   gtk_imshow(widget, matrix, n_rows, n_cols);
end



You will basically have to write a new widget, with
all handling code. If youre using Octave-GTK+ I
would request you to join our mailing lists at
http://lists.sourceforge.net/lists/listinfo/octave-gtk-users

Hope this helps.

Cheers
Muthu



                
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]