Re: gtk.notebook example
Patrick Bernaud <[email protected]> Thu, 24 Apr 2014 18:56:52 +0200
| Newsgroups | gmane.lisp.guile.gtk |
|---|---|
| Message-ID | <[email protected]> |
Hello, Max writes: > [...] > (use-modules (oop goops) (gnome gobject) (gnome gtk) (gnome gobject utils)) > > (define notebook (make <gtk-notebook>)) > > (define (hello) > (let* ((window (make <gtk-window> #:type 'toplevel)) > (append-page notebook scrolled > (make <gtk-label> :label name :use-underline #t))) > (set-border-width window 10) > (show-all window) > (gtk-main))) > > (hello) > > Any ideas why? Shall I add created notebook to some top-level > window? Yes, the notebook has to be added to the window: (add window notebook) Also note that in the code above 'scrolled' is not defined, neither is 'name', the binding block of the 'let*' is not closed correctly and you are mixing two keyword read syntaxes. No wonder it does not compile ! :) Regards, -- Patrick Bernaud