how to provide size of button in clojure?

225 Views Asked by At

I am new to clojure and using seesaw for my gui. i wanted to know how to give the size of a button (or any widget for that matter) in seesaw.

I already have tried

(seesaw/button :text "Done"
             :size [40 :by 40]
             :listen [:action done-handler])

And then i wrap my button in a seesaw/left-right-split. When i do this my button takes the entire height and width of the right side panel. How do i give it the size i want?

1

There are 1 best solutions below

1
On

try :preferred-size instead of :size