Re: How to draw a graph with php-gtk ?

From: Date: Thu, 26 Sep 2002 19:46:43 +0000
Subject: Re: How to draw a graph with php-gtk ?
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2475@lists.php.net to get a copy of this message
while(gtk::events_pending()) gtk::main_iteration(); covers a multitude of sins :) ----- Original Message ----- From: "Ernest Beinrohr" <Ernest@Beinrohr.sk> To: "php-gtk-general" <php-gtk-general@lists.php.net> Sent: Thursday, September 26, 2002 6:40 PM Subject: Re: [PHP-GTK] How to draw a graph with php-gtk ? > Hmm, i was able to make my php script to draw a graph [sinus]. But the > real function will be SLOW and I cannot wait until the whole calculating > finishes, i need to update the graph on every output of the function, > but the GUI should be usable in that time, meaning i can press buttons. > > after i saw what is possible with php-gtk, this should work. can anyone > push me a little ? > > > > Alan Knowles wrote: > > Ernest Beinrohr wrote: > > > >> Hi there, maybe some of you could help me with this a little. > >> > >> I would need to [slowly] draw a graph with php-gtk. Actually I would > >> nee to draw some data and draw it WHILE proceeding, also not fetch aal > >> the neede data and draw it, but draw it step-by-step. > > > > > > you will need to use the gtkdrawingarea widget, which is one of the more > > confusing widgets out there... > > > > Have a look at the scribble.php example, this gives you the basics of > > drawing. > > > > there are a few things to remember about gtkdrawingareas : > > a) you draw onto a pixmap which is associated with the drawingarea > > b) after you have drawn a line, you need to tell the drawing area to > > redraw the area of the pixmap that you have changed. > > > > there is a very complex example of a drawingarea in the html render widget. > > http://docs.akbkhome.com/akpear/GTK_HtmlEditor.html > > > > Regards > > Alan > > > >> > >> > >> is it possible ? > >> > >> > >> PS: is should like like "animated" ... > > > > > > > > > > > > -- > Ernest Beinrohr, OERNii > eAdmin @ AxonPro.sk, http://www.AxonPro.sk > +421-2-62410360, +421-905-241903 > HomePage: http://www.oernii.sk > > > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.gtk.general (#2475) next »