This makes the design part of the GUI much funner than trying to figure
it out by hand, or “guessing” what swing or shoes are going to actually
give you in the end. Plus it even comes with its own “GUI Editor” for
experimenting with designs on the fly.
Jruby only for now, but I’d be happy to implement another backend like
Tk or any other toolkit if there were interest. So rvm install jruby
and then install the simple_gui
Feedback/feature requests/suggestions welcome.
Great minds think alike, ey Roger? I worked on something like that years
ago but never followed threw with it. If I recollect correctly I had
called
it ArtML. I recall my design originally started off rather complex, in
that
the “ascii art” syntax could defined quite a bit. Later on I simplified
things such that each element defined just type, name and optionally
class(es). Then I used some YAML to tie it all together and to flesh it
out. So you might have had something like:
--- !artml-layout
main_window:
+----------------+
| [ button1 ] |
| [ button2 ] |
+----------------+
--- !artml-data
main_window: !window
title: My Window Title
button1: !button
text: Click this button
button2: !button
text: Click this button too!
Anyway, I think it is a great idea (obviously) and Tk and (especially)
HTML
targets would be awesome.
--- !artml-layout
main_window:
+----------------+
| [ button1 ] |
| [ button2 ] |
+----------------+
--- !artml-data
main_window: !window
title: My Window Title
button1: !button
text: Click this button
button2: !button
text: Click this button too!
Wow that’s a great idea to tie it together with YAML for the text. I
think I may implement it, since it help the GUI be cleaner
“more funner” that is.
Anyway, I think it is a great idea (obviously) and Tk and (especially)
HTML
targets would be awesome.
Does anybody use Tk these days? Any plus 1’s out there for Tk?
Re: HTML I thought the other day to try and tie “button clicks” etc.,
back in to server-side code, kind of like what wicket does in java (at
least I think that’s what wicket does). Does anybody know if anything
like that exists today in ruby land?
That type of thing? I’m familiar with rails’ ajax callbacks, which
basically allow you to edit raw html, but something that wraps html
pages “in ruby classes” at all?
I don’t see any license information in the repository. Is this intended
to be distributed under the same terms as MRI/YARV Ruby (Ruby License
and
Simplified BSD License dual-licensing)? If so, a license notice to that
effect would be helpful. If you have not settled on a license, my
recommendation would be to keep it as simple as reasonably possible:
http://univacc.net/?page=license_simplicity
Toward that end, if you’re looking for suggestions, I like: