https://groups.google.com/d/forum/seesaw-cljseesaw-cljDiscussion of Seesaw UI toolkit for Clojure.
<br><a href="https://github.com/daveray/seesaw">https://github.com/daveray/seesaw</a>Google GroupsCecil Westerhof2016-07-19T10:18:57Zhttps://groups.google.com/d/topic/seesaw-clj/42gLDjon1gUDisplaying a scaled down picture and drawing a rectangle on itAt the moment I am using Image Magick on the command line with trial and error to crop the right part of the photo. For example: https://www.instagram.com/p/BH7r97NgvFX/ But this is a ‘bit’ of work. So I was thinking about writing a Clojure program to do the cropping for me. That would saveJames Elliott2016-07-18T05:07:04Zhttps://groups.google.com/d/topic/seesaw-clj/KCWZFtIfReYConfusing doc stringI can't tell from reading this if id-of returns a string or a keyword. The first paragraph says string, the second says keyword. I am going to have to try it and see, but it would be nice to be spared that step in the future. :) seesaw.core/id-of [w] Returns the id of the given widget if theJames Elliott2016-07-18T04:59:00Zhttps://groups.google.com/d/topic/seesaw-clj/1ubN0gICiBQNeed to rebuild documentation pages?I was tripped up when trying to follow the example for a button-group listener, because the documentation at http://daveray.github.io/seesaw/seesaw.core-api.html#seesaw.core/button-group had the following: (listen bg :selection (fn [e] (if-let [s (selection e)] (println胡傲果2016-07-12T03:11:15Zhttps://groups.google.com/d/topic/seesaw-clj/wRZfLDwshyswhere to see config! optionsI know config! colud be used to set :text :background :size, is there a doc for these options? If I want to find a option to be config, where do I go to find it.James Elliott2016-05-24T22:59:24Zhttps://groups.google.com/d/topic/seesaw-clj/lsz8QC1rH4MHow can I make a button that shows a popup menu when you click in it?I have contextual-menu style popups working fine, but I would like to give new users a visual indicator that the contextual menu exists by having a button with a gear on it which, when clicked without modifier keys, brings up the same set of choices. But I am having trouble figuring out how toJames Elliott2016-05-18T17:20:30Zhttps://groups.google.com/d/topic/seesaw-clj/m5AbNxXLqXQUsing value with repeating structuresHello, everyone, I just started using seesaw this past week in order to put together a user interface that will be helping coordinate visuals for a DJ at a music festival this weekend, and it has been delightful. The current state of my code can be found at https://github.com/brunchboy/beat-linkAndrew Dabrowski2016-05-15T21:22:44Zhttps://groups.google.com/d/topic/seesaw-clj/C-8nJV0h-dcWidgets inside a canvas?Is it possible to place widgets at arbitrary positions inside a canvas? Apparently that can be done in Java, but I haven't come across any examples in seesaw. I tried a paint function like (fn [c g] (.add c button '(x y)) and although it didn't produce an error, it also didn't display theAndreas Olsson2016-03-21T20:35:08Zhttps://groups.google.com/d/topic/seesaw-clj/zO6TtYJet7gLoad image(maby a jpg) to a image-buffer.Trying to import an image to a image-buffer but having trouble solving it. heres a try: (def pic (seesaw.graphics/buffered-image 200 200)) (def dopic (.imageio.ImageIO.read pic (str (System/getProperty "user.dir") "\\resources\\grumpy.jpg"))) Am I totaly of??Andreas Olsson2016-03-21T09:58:08Zhttps://groups.google.com/d/topic/seesaw-clj/StMwNrk3eZEimage-buffer problem... .setStroke??Trying out the buffered-image, but I cant get line 17 right. How do i use it? http://pastebin.com/QF7LnwMdAmir Teymuri2016-01-23T10:39:12Zhttps://groups.google.com/d/topic/seesaw-clj/TLsj38nCQSsUnderstanding (show-options) and (show-events)Often when i call the (show-options) of a function it prints mostly the very same options as for other functions. For example calling (show-options (border-panel)) and (show-options (label)) and (show-options (toolbar)) all include a :text options, from which only (label) supports :text, fromAmir Teymuri2016-01-20T11:30:15Zhttps://groups.google.com/d/topic/seesaw-clj/l6kTbSzF5tcNo printing in the REPLIn the tutorial there is the chapter on the listbox, i have tried to print out the selections, but it doesn't work for me. Maybe someone could point it out what am i doing wrong and why i don't get anything printed out in the REPL? (def f (frame :title "sandiego")) (def lb (listbox :model [:dAmir Teymuri2016-01-19T23:12:13Zhttps://groups.google.com/d/topic/seesaw-clj/OqmAG8Gou0cButton event-handlerAdding an event-handler to a button the actions are divided between right and left buttons of the mouse. I was doing something like this: *(def f (frame :title "san-diego"))* *(def btn (button :text "btn" :font "monospaced-bold-40"))* *(listen btn :mouse-pressed #(config! % :foreground :orange)*Amir Teymuri2016-01-19T09:17:06Zhttps://groups.google.com/d/topic/seesaw-clj/WFi4OzAYTugInvoking :font option on (flow-panel)According to (show-options (flow-panel)) (flow-panel) does support the :font option. How is :font to invoke on flow-panel? This does not work: (config! my-frame :content (flow-panel :items ["FILE:" (text "here comes the TEXT")] :font "ARIAL-BOLD-100" :background :red))Amir Teymuri2016-01-16T14:27:15Zhttps://groups.google.com/d/topic/seesaw-clj/hslPZnYYB9oRunning seesaw and overtone libraries togethearHello, i want to use the overtone <https://github.com/overtone/overtone/wiki> and seesaw namespaces in one project. However when i load them there seems to be a function named (select) which exists in both seesaw.core and overtone.core ((seesaw.core/select) (overtone.core/select)), why i can'tDB Conrado2015-12-13T16:42:17Zhttps://groups.google.com/d/topic/seesaw-clj/wZaDrRbC_SwBeginning by doing some exercises from Deitel's bookSup guys! I'm new to the community and also to the Clojure language itself. So, I began my learning by doing some exercises from Deitel's Java How to Program book, 6th ed. You can see what I've done at: https://github.com/dbconrado/deitel-clojure-exercises Hope it helps other beginners like me