Re: A simpler guile-gtk interface



lutterdc@cs.purdue.edu (David Lutterkort) writes:

| > As an example, the new code to create a top-level window with a label in it is 
| > as follows:
| >   (gtk-widget-show
| >    (gtk-top-level
| >     ((title "Top-level title"))
| >     (gtk-label "here is a label")))

| This is really cool ! The big advantage of using gtk with guile over
| vanilla C right now is that it is _much_ easier to get something going in
| guile than in C.

I am thinking about a gtk-built-widget-tree function. This will be
once again a bit simpler. The gui building could look like this:

(gtk-build-widget-tree
 `(window :type toplevel
	  :title "Top-level title"
	  (button :label "Say Hello"
		  :signal clicked ,(lambda ()
				     (display "Hello\n")))))

This function has to be created from gtk.defs.
I am still brain storming ;-)

-- 
http://www.ping.de/sites/aibon/



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