librelist archives

« back to archive

Really newbie question on GUI widgets

Really newbie question on GUI widgets

From:
Marco Bresciani
Date:
2012-03-29 @ 19:30
Hi all,
   I'm really really new to Ruby (just started one week ago to study the 
language syntax, even though I've more than 10 years of Java on my back... I 
know: it's not so nice!) :)

Well: just a week and I'm starting to love Ruby and hate Java (more than usual!).

I've just (this morning!) found Shoes an I'm trying to explore it... and war 
my shoes as well!
   I've just given a look at the "holy book of Shoes" and I have few simple 
questions for you all.

1. are there ready-made GUI components like tables or trees?

2. I've read Shoes is a tiny framework... do you think is it reasonable to use 
it for a complex application? Say, something like an email client or a GUI for 
an archiver (7-zip, zip, paq, ...) or a torrent client and so... what do you 
think?


More unpolite ;) question: if it is not reasonable, if Shoes is too small for 
such kind of applications... which GUI framework would you suggest me, for 
Ruby and multi-platform? :)


Well, thanks very much all and... Ruby Long and Prosper! :)

Bye,

Marco
 
 
 --
 Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
autenticato? GRATIS solo con Email.it http://www.email.it/f
 
 Sponsor:
 Offerta speciale: a partire da soli Euro 18.90 puoi stampare le tue Foto 
su vera Tela Pittorica e creare Quadri fino a 80x50 cm!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=11453&d=29-3

Re: [shoes] Really newbie question on GUI widgets

From:
Peter Fitzgibbons
Date:
2012-03-29 @ 19:38
Yeay!  My hat off to you for venturing out into the Ruby world.

My other answers inline.

Peter Fitzgibbons
(847) 859-9550
Email: peter.fitzgibbons@gmail.com
IM GTalk: peter.fitzgibbons
IM AOL: peter.fitzgibbons@gmail.com

1. are there ready-made GUI components like tables or trees?
>
Nope, these are gaps in the current framework.  These are not specifically
"missing", since they were never in Shoes... though tables and trees are
certainly a good idea!

>
> 2. I've read Shoes is a tiny framework... do you think is it reasonable to
> use
> it for a complex application? Say, something like an email client or a GUI
> for
> an archiver (7-zip, zip, paq, ...) or a torrent client and so... what do
> you
> think?
>

Yes, I think Shoes is very capable of building a Gui like that.


> Well, thanks very much all and... Ruby Long and Prosper! :)
>
> You're welcome.

Re: [shoes] Really newbie question on GUI widgets

From:
Marco Bresciani
Date:
2012-03-29 @ 19:59
Peter Fitzgibbons ha scritto:
> Yeay!  My hat off to you for venturing out into the Ruby world.

:) Thank you Peter, for the answers too!

>     1. are there ready-made GUI components like tables or trees?

> "missing", since they were never in Shoes... though tables and trees are
> certainly a good idea!

Indeed they are. :) Even if I think I'm still reasoning in a Java way, tables 
could be useful to show DB things and trees I think could be lovely for YAML 
file representations... :) think something like this:

	file = File.open "myLongListOfThings.yaml"
	thethings = YAML::load file
	Shoes.app do
	    tree(thethings)
	end

Wouldn't it be great?

Bye,

Marco

PS: My idea is to create something "strange": have you ever seen Star Trek 3D 
chess? 
http://images.wikia.com/memoryalpha/en/images/d/df/Spock_McCoy_3D_chess.jpg My 
graduation thesis (years ago) was a Java things that allowed to play those 
chess, even with an AI (with different algorithms) and pluggable rules... and 
even an XML with players' history... with a very poor GUI, indeed. Would be 
lovely to redo it in Ruby... my plan for next months! :)
 
 
 --
 Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
autenticato? GRATIS solo con Email.it http://www.email.it/f
 
 Sponsor:
 Vuoi arredare casa con stile? MisterCupido.com realizza perfette 
Riproduzioni d'Opere d'Arte! Scopri subito le nostre migliori proposte in 
offerta!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=11451&d=29-3

Re: [shoes] Really newbie question on GUI widgets

From:
J. Kaiden
Date:
2012-03-29 @ 23:12
hi Marco,

  Welcome to Shoes!  my humble opinion is that you can do anything you
freakin want in Shoes, and that's the beauty of it!!  Shoes is often sold
as a 'simple' gui toolkit, but the truth is that you can do anything from
write a simple gui to your own flavor (color) of Shoes to satisy whatever
needs you have..  as a practical example, i have basically NO experience
with programming (aside from working with Basic on my TI994A waaaaaaay back
in the day) and yet i managed to build my own Shoes that supports GStreamer
sound...    Shoes is just awesome...  really.

  probably the best thing about Shoes is the community that supports it.
 On this mailing list you'll find some of the most helpful people you could
hope to find - and no b*llsh*t.  there are plenty of examples to get you
started, for example:

http://shoes-tutorial-note.heroku.com/

  for working with the Shoes::Widget, you could check out (and excuse the
shameless plug)  :  https://github.com/lljk/shoes-stuff/wiki/Shoes-Widgets

  Get Your Shoes On....

  - j




On Thu, Mar 29, 2012 at 7:59 PM, Marco Bresciani <m.bresciani@email.it>wrote:

> Peter Fitzgibbons ha scritto:
> > Yeay!  My hat off to you for venturing out into the Ruby world.
>
> :) Thank you Peter, for the answers too!
>
> >     1. are there ready-made GUI components like tables or trees?
>
> > "missing", since they were never in Shoes... though tables and trees are
> > certainly a good idea!
>
> Indeed they are. :) Even if I think I'm still reasoning in a Java way,
> tables
> could be useful to show DB things and trees I think could be lovely for
> YAML
> file representations... :) think something like this:
>
>        file = File.open "myLongListOfThings.yaml"
>        thethings = YAML::load file
>        Shoes.app do
>            tree(thethings)
>        end
>
> Wouldn't it be great?
>
> Bye,
>
> Marco
>
> PS: My idea is to create something "strange": have you ever seen Star Trek
> 3D
> chess?
> http://images.wikia.com/memoryalpha/en/images/d/df/Spock_McCoy_3D_chess.jpgMy
> graduation thesis (years ago) was a Java things that allowed to play those
> chess, even with an AI (with different algorithms) and pluggable rules...
> and
> even an XML with players' history... with a very poor GUI, indeed. Would be
> lovely to redo it in Ruby... my plan for next months! :)
>
>
>  --
>  Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
> autenticato? GRATIS solo con Email.it http://www.email.it/f
>
>  Sponsor:
>  Vuoi arredare casa con stile? MisterCupido.com realizza perfette
> Riproduzioni d'Opere d'Arte! Scopri subito le nostre migliori proposte in
> offerta!
>  Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=11451&d=29-3
>

Re: [shoes] Really newbie question on GUI widgets

From:
Marco Bresciani
Date:
2012-03-30 @ 07:23
> hi Marco,  Welcome to Shoes!  my humble opinion is that you can do
anything you 
>   Get Your Shoes On....  - j

Thanks j,
  I'm going to wear my shoes... :)


Marco 
 --
 Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
autenticato? GRATIS solo con Email.it: http://www.email.it/f
 
 Sponsor:
 Vuoi arredare casa con stile? MisterCupido.com realizza perfette
Riproduzioni d'Opere d'Arte! Scopri subito le nostre migliori proposte in
offerta!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=11451&d=20120330


 
 
 --
 Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
autenticato? GRATIS solo con Email.it http://www.email.it/f
 
 Sponsor:
 Vuoi fare un regalo davvero originale? Su MisterCupido.com puoi crearlo 
tu! Personalizza con le tue foto: quadri, tazze, puzzle, cuscini, 
peluche...
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=11450&d=30-3