Created
May 31, 2011 15:47
-
-
Save daveray/1000729 to your computer and use it in GitHub Desktop.
seesaw setvisible
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(frame :resizable? true | |
:content (vertical-panel | |
:id :panel | |
:items | |
[(button :text "show button 2" | |
:listen [:action (fn [e] | |
(let [btn (select (to-frame e) [:#btn])] | |
(.setVisible btn true)))]) | |
(doto (button :id :btn :text "here I am") (.setVisible false))])) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment