Hi,
The same hello world did not work for me.
The error msgs are:
(defn hello-world []
  (qt4
   (let [app (QCoreApplication/instance)
         button (new QPushButton "Go Clojure Go")]
     (.. button clicked (connect app "quit()"))
     (doto button
       (resize 250 100)
       (setFont (new QFont "Deja Vu Sans" 18 (.. QFont$Weight Bold
value)))
       (setWindowTitle "Go Clojure Go")
       (show)))))
java.lang.Exception: Unable to resolve symbol: resize in this context
(NO_SOURCE_FILE:44)


Sun



On Nov 4, 5:26 pm, Brian Carper <briancar...@gmail.com> wrote:
> On Nov 4, 9:06 am, "Geoffrey Teale" <tea...@googlemail.com> wrote:
>
> > If you teach the general principles ofClojurethen using any of them should
> > be easy enough.   As Graham said, it's better to stick with the out of the
> > box GUI layer for a general purpose book.  QtJambi was actually a little
> > tricky to set up on my (rather esoteric!) Linux box, and you don't want
> > readers to get pissed off and give up!
>
> I blogged a little aboutQtJambi +Clojurerecently [1], for what
> it's worth.  I found it very easy to set up and use, on Gentoo Linux
> and on Vista.  I'm using it to build an app in my spare time and it's
> working well.  I would be interested to see anyone write up a HOWTO
> for using a GUI builder tool withClojure, for Swing orQtor any
> other framework.  It is a bit tedious to do by hand.
>
> I agree though, for a book it might be better to stick with native
> Java stuff.  No sense needlessly complicating matters with external
> libraries.  QtJambi had a couple of odd quirks that I was unable to
> figure out.  (Randomly killing myClojureprocess under SLIME for
> example.)
>
> [1]http://briancarper.net/2008/10/31/qt4-in-lisp/
>
> --Brian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to