[ANN] simple_gui_creator 0.1.3 released

Hello all. I would like to wish happy birthday to my simple_gui_creator
gem.

Basically it allows you to design your window layout using
(opinionated) ASCII art-like text:

---------------My Window Title--------------------------
| [Click this button :button1] |

[Click this button too! :button2]

And then bind button actions to ruby code, like:

elements[:button1].on_clicked { puts ‘you clicked button1’ }

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.

if you don’t have jruby yet installed:

$ rvm install jruby
$ rvm use jruby

now install the gem.

$ gem install simple_gui_creator
$ jruby -S simple_gui_creator

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.

Complete info:

Cheers, and happy GUI editing.
-roger-

On Jun 21, 2012, at 17:40 , Roger P. wrote:

funner

cringe

On Thursday, June 21, 2012 8:40:48 PM UTC-4, Roger P. wrote:


if you don’t have jruby yet installed:

and then install the simple_gui
Feedback/feature requests/suggestions welcome.

Complete info:

ruby_simple_gui_creator/README at master · rdp/ruby_simple_gui_creator · GitHub

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.

On 06/22/2012 02:40 AM, Roger P. wrote:

Feedback/feature requests/suggestions welcome.

Complete info:

ruby_simple_gui_creator/README at master · rdp/ruby_simple_gui_creator · GitHub

Cheers, and happy GUI editing.
-roger-

HI Roger!
the homepage link in your gemspec seems to be wrong
I used https instead of http and it works.
– ralf

--- !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 :slight_smile:

“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?
:slight_smile:

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?

Like

html_page = HtmlPage.new ‘template_file’
html_page[‘button1’].on_clicked_in_browser {
html_page[‘text_field1’].text = ‘hello there’
}
render html_page

and callbacks for form validation, etc.

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?

Thanks!
-roger-

ruby_simple_gui_creator/README at master · rdp/ruby_simple_gui_creator · GitHub

Cheers, and happy GUI editing.
-roger-

HI Roger!
the homepage link in your gemspec seems to be wrong
I used https instead of http and it works.

Oops looks like it was totally out of date and wrong…
GitHub - rdp/ruby_simple_gui_creator: Framework to ease in creation of ruby GUI apps. Makes designing GUI's a snap. is right.
Thanks for pointing it out.
-roger-

On Fri, Jun 22, 2012 at 09:40:48AM +0900, Roger P. wrote:

Complete info:

ruby_simple_gui_creator/README at master · rdp/ruby_simple_gui_creator · GitHub

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:

All the above licenses appear in the list of Copyfree Initiative
approved
licenses: CI: standard > licenses

Toward that end, if you’re looking for suggestions, I like:

Thanks Chad, I accepted your suggestion and attempted to add a note
that it’s released under the MIT license.
Cheers!
-roger-

Hello all. I would like to wish happy birthday to my simple_gui_creator
gem.

And hot on its heals is the newly released version 0.2.0:

ChangeLog:
Added dropdowns, and checkboxes (UTF-8 character).
Also made it possible to have multiple different types “on the same
line”

Demo:

---------- Window Title ----------------------------------
| [a button:button1] |
| “some text2:text1” [button text:button3] |
| [An Editable Text Area with 4 rows:text_area] |
| [ ] |
| [ ] |
| [Dropdown Default / :dropdown_name] |
| [✓:checkbox_name] “Some text” |

On 22 June 2012 11:05, Ryan D. [email protected] wrote:

On Jun 21, 2012, at 17:40 , Roger P. wrote:

funner

cringe

I believe he meant “more funner.”


Matthew K., B.Sc (CompSci) (Hons)
http://matthew.kerwin.net.au/
ABN: 59-013-727-651

“You’ll never find a programming language that frees
you from the burden of clarifying your ideas.” - xkcd