PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > GUI and ruby
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
GUI and ruby

Réponse
 
LinkBack Outils de la discussion
Vieux 18/11/2007, 10h17   #1
ulazar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut GUI and ruby

I would like to create an interface GUI with ruby. What I have to use? I
would like that the GUI could be used in win, osx and linux. Is there a
good interface builder?
  Réponse avec citation
Vieux 18/11/2007, 10h47   #2
Mohit Sindhwani
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: GUI and ruby

ulazar wrote:
> I would like to create an interface GUI with ruby. What I have to use?
> I would like that the GUI could be used in win, osx and linux. Is
> there a good interface builder?
>
>
>


If you want to design it yourself, I think you can use Ruby/Tk, FoxGUI,
wxWidgets and Shoes. A drag-and-drop interface for designing GUI is
WideStudio. It takes a little getting used to, but it can do quite a
bit of stuff!

Cheers,
Mohit.
11/18/2007 | 5:46 PM.



  Réponse avec citation
Vieux 18/11/2007, 12h52   #3
FireAphis
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: GUI and ruby

On Nov 18, 11:17 am, ulazar <ula...@XXXtin.it> wrote:
> I would like to create an interface GUI with ruby. What I have to use? I
> would like that the GUI could be used in win, osx and linux. Is there a
> good interface builder?


I had a similar question regarding which library to use. After talking
to people and reading various posts and articles I reached a
conclusion that I have to choose between Tk and GTK2. Tk+Ruby seems to
have more resources on the web but GTK2+Ruby looks better and
apparently is more easily customizable (custom drawn widgets was
easier to create). I've personally chosen GTK2.

Check this out:
http://ruby-gnome2.sourceforge.jp/hiki.cgi

Regarding a good interface builder I have much less experience. I code
the interface definitions myself.

FireAphis
  Réponse avec citation
Vieux 18/11/2007, 12h54   #4
Jonathan Hudson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: GUI and ruby

On Sun, 18 Nov 2007 03:52:25 -0800 (PST)
FireAphis <FireAphis@gmail.com> wrote:

> On Nov 18, 11:17 am, ulazar <ula...@XXXtin.it> wrote:
> > I would like to create an interface GUI with ruby. What I have to use? I
> > would like that the GUI could be used in win, osx and linux. Is there a
> > good interface builder?

>
> I had a similar question regarding which library to use. After talking
> to people and reading various posts and articles I reached a
> conclusion that I have to choose between Tk and GTK2. Tk+Ruby seems to
> have more resources on the web but GTK2+Ruby looks better and
> apparently is more easily customizable (custom drawn widgets was
> easier to create). I've personally chosen GTK2.
>
> Check this out:
> http://ruby-gnome2.sourceforge.jp/hiki.cgi
>
> Regarding a good interface builder I have much less experience. I code
> the interface definitions myself.


Glade. Ruby + Gtk2 + glade make UIs a breeze.

-jh
  Réponse avec citation
Vieux 18/11/2007, 13h06   #5
Thomas Adam
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: GUI and ruby

Hello --

On 18/11/2007, Jonathan Hudson <jh+ruby-lang@daria.co.uk> wrote:
> Glade. Ruby + Gtk2 + glade make UIs a breeze.


I don't mind Tk -- that has the advantage of being in the core, too.

-- Thomas Adam

  Réponse avec citation
Vieux 18/11/2007, 13h18   #6
FireAphis
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: GUI and ruby

On Nov 18, 2:06 pm, Thomas Adam <thomas.ada...@gmail.com> wrote:
> Hello --
>
> On 18/11/2007, Jonathan Hudson <jh+ruby-l...@daria.co.uk> wrote:
>
> > Glade. Ruby + Gtk2 + glade make UIs a breeze.

>
> I don't mind Tk -- that has the advantage of being in the core, too.
>
> -- Thomas Adam


Yeah. Actually that is its biggest advantage. You have to download a
bunch of libraries from different sources to make Gtk2 run with ruby.
It took me a while to configure all the components correctly (well, in
my case I needed some more libraries than usually required). Tk on the
other hand is already there, ready to be used. If your GUI is small
and practical Tk is excellent.

FireAphis
  Réponse avec citation
Vieux 18/11/2007, 13h44   #7
Jonathan Hudson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: GUI and ruby

On Sun, 18 Nov 2007 04:18:32 -0800 (PST)
FireAphis <FireAphis@gmail.com> wrote:

> On Nov 18, 2:06 pm, Thomas Adam <thomas.ada...@gmail.com> wrote:
> > Hello --
> >
> > On 18/11/2007, Jonathan Hudson <jh+ruby-l...@daria.co.uk> wrote:
> >
> > > Glade. Ruby + Gtk2 + glade make UIs a breeze.

> >
> > I don't mind Tk -- that has the advantage of being in the core, too.
> >
> > -- Thomas Adam

>
> Yeah. Actually that is its biggest advantage. You have to download a
> bunch of libraries from different sources to make Gtk2 run with ruby.
> It took me a while to configure all the components correctly (well, in
> my case I needed some more libraries than usually required). Tk on the
> other hand is already there, ready to be used. If your GUI is small
> and practical Tk is excellent.
>


apt-get ruby-gnome (ubuntu et al)

pkg_add -r ruby18-gnome2-all.tgz (FreeBSD)

wget / unzip
http://ruby-gnome2.sourceforge.jp/?N...msvcrt-1.8.zip
(win32)

wget / dpkg -i
http://maemo.rubyx.co.uk/ruby-maemo/...emo3_armel.deb
(maemo / Nokia N800 / N810)

Granted it's possibly somewhat harder for OSX, partially due to the old
GTK installed by default.

OTOH, one time I tried to track down all the Tk dependencies for
Win32 .... maybe that's also fixed now.

Anyway, personal prejudices aside, there's a pretty good comparison of
UI toolkits at <http://kylecordes.com/2007/03/31/ruby-gui-toolkits/>

-jonathan



  Réponse avec citation
Vieux 18/11/2007, 13h56   #8
Alec Ross
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: GUI and ruby

In message <DqT%i.172462$%k.312379@twister2.libero.it>, ulazar
<ulazar@XXXtin.it> writes
>I would like to create an interface GUI with ruby. What I have to use?
>I would like that the GUI could be used in win, osx and linux. Is there
>a good interface builder?


I suggest you check out wxRuby. There are several interface builders -
free and commercial. DialogBlocks w/ the wxWidgets XRC resource systems
seems to be liked.

HTH

Alec
--
Alec Ross
  Réponse avec citation
Vieux 18/11/2007, 14h12   #9
Jari Williamsson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: GUI and ruby

Jonathan Hudson wrote:

> Anyway, personal prejudices aside, there's a pretty good comparison of
> UI toolkits at <http://kylecordes.com/2007/03/31/ruby-gui-toolkits/>


...which is already dated. Some GUI toolkits have evolved alot during
the last half-year.

I would recommend that you try the latest versions of all the toolkits
and see which of them is most likely to fit your needs.


Best regards,

Jari Williamsson

  Réponse avec citation
Vieux 18/11/2007, 15h24   #10
Werner
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: GUI and ruby



ulazar wrote:
> I would like to create an interface GUI with ruby. What I have to use? I
> would like that the GUI could be used in win, osx and linux. Is there a
> good interface builder?


I had good success with qtruby. I had been using qt 3.5.x and kdevelop.
Although my focus was entirely on linux it also seems to also run on win
and osx.

Regards
Werner
  Réponse avec citation
Vieux 18/11/2007, 17h00   #11
Terry Poulin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: GUI and ruby

FireAphis wrote:
> On Nov 18, 11:17 am, ulazar <ula...@XXXtin.it> wrote:
>> I would like to create an interface GUI with ruby. What I have to use? I
>> would like that the GUI could be used in win, osx and linux. Is there a
>> good interface builder?

>
> I had a similar question regarding which library to use. After talking
> to people and reading various posts and articles I reached a
> conclusion that I have to choose between Tk and GTK2. Tk+Ruby seems to
> have more resources on the web but GTK2+Ruby looks better and
> apparently is more easily customizable (custom drawn widgets was
> easier to create). I've personally chosen GTK2.
>
> Check this out:
> http://ruby-gnome2.sourceforge.jp/hiki.cgi
>
> Regarding a good interface builder I have much less experience. I code
> the interface definitions myself.
>
> FireAphis
>
>



If I am to lazy to write it myself (particually a problem with C++... hehe) I
usually use QT Designer to create the GUI and make use of tools from qtruby to
convert it into Ruby code (rather then C++). Test it and when it's 'good
enough' I start work on prototyping the implementation code.


I like GTK+ programs but I have never used it for programming beyond tutorials
in C though. So I wouldn't know much about how GTK+ works with Ruby.

Cheers.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com


  Réponse avec citation
Vieux 19/11/2007, 05h06   #12
Piyush Ranjan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: GUI and ruby

Note: parts of this message were removed by the gateway to make it a legal Usenet post.

Shoes although quiet new, looks like a really fun GUI toolkit to use.
http://code.whytheluckystiff.net/shoes/
And the code is compatible for all three platforms you require.


On Nov 18, 2007 9:30 PM, Terry Poulin <bigboss64@ippimail.com> wrote:

> FireAphis wrote:
> > On Nov 18, 11:17 am, ulazar <ula...@XXXtin.it> wrote:
> >> I would like to create an interface GUI with ruby. What I have to use?

> I
> >> would like that the GUI could be used in win, osx and linux. Is there a
> >> good interface builder?

> >
> > I had a similar question regarding which library to use. After talking
> > to people and reading various posts and articles I reached a
> > conclusion that I have to choose between Tk and GTK2. Tk+Ruby seems to
> > have more resources on the web but GTK2+Ruby looks better and
> > apparently is more easily customizable (custom drawn widgets was
> > easier to create). I've personally chosen GTK2.
> >
> > Check this out:
> > http://ruby-gnome2.sourceforge.jp/hiki.cgi
> >
> > Regarding a good interface builder I have much less experience. I code
> > the interface definitions myself.
> >
> > FireAphis
> >
> >

>
>
> If I am to lazy to write it myself (particually a problem with C++...
> hehe) I
> usually use QT Designer to create the GUI and make use of tools from
> qtruby to
> convert it into Ruby code (rather then C++). Test it and when it's 'good
> enough' I start work on prototyping the implementation code.
>
>
> I like GTK+ programs but I have never used it for programming beyond
> tutorials
> in C though. So I wouldn't know much about how GTK+ works with Ruby.
>
> Cheers.
>
>
> --
>
> Email and shopping with the feelgood factor!
> 55% of income to good causes. http://www.ippimail.com
>
>
>


  Réponse avec citation
Vieux 19/11/2007, 13h36   #13
thefed
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: GUI and ruby


On Nov 18, 2007, at 11:06 PM, Piyush Ranjan wrote:

> Shoes although quiet new, looks like a really fun GUI toolkit to use.
> http://code.whytheluckystiff.net/shoes/
> And the code is compatible for all three platforms you require.
>


Does it have good support for Mac OS X PPC? I know that it works on
Intel, but last time I checked, PPC was still non functional.

  Réponse avec citation
Vieux 19/11/2007, 15h42   #14
Michal Suchanek
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: GUI and ruby

On 19/11/2007, thefed <fedzor@gmail.com> wrote:
>
> On Nov 18, 2007, at 11:06 PM, Piyush Ranjan wrote:
>
> > Shoes although quiet new, looks like a really fun GUI toolkit to use.
> > http://code.whytheluckystiff.net/shoes/
> > And the code is compatible for all three platforms you require.
> >

>
> Does it have good support for Mac OS X PPC? I know that it works on
> Intel, but last time I checked, PPC was still non functional.


There are PPC/universal builds. But unless you test it yourself you
can't tell if it's good enough ;-)

Thanks

Michal

  Réponse avec citation
Vieux 19/11/2007, 18h04   #15
Kyle Schmitt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: GUI and ruby

I've used shoes and straight GTK2 for for ruby. Both are great
options, but I lean more towards GTK (sorry why). Mind you I've done
only the simplest of guis for my ruby stuff so far

I've never used glade with it though... Can you use the standard
glade interface designer for ruby-glade apps?

--Kyle

  Réponse avec citation
Vieux 20/11/2007, 16h29   #16
Kyle Schmitt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: GUI and ruby

On Nov 19, 2007 12:11 PM, Janek Thomaschewski <janek@php4you.de> wrote:
> Hello,
>
> Kyle Schmitt schrieb:
> > I've never used glade with it though... Can you use the standard
> > glade interface designer for ruby-glade apps?

>
> yes you can, the Glade Interface Designer creates standard
> .glade-XML-files which can be used by all(?) GTK implementations such as
> the ruby one. For the ruby one you can simply "click" your design and
> chose the events and afterwards you can use the script
> "ruby-glade-create-template" which is included into the ruby gnome2
> package to create a default ruby file with included .glade file and
> Gettext support. The events are predefined as methods so you only have
> to type in what should be done when clicking a button for example.
> In my opinion thats really easy!
>
> Janek


Very nice. I'll have to try that for my next project!

Thanks.
--Kyle

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 20h42.


Édité par : vBulletin® version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 1,45821 seconds with 24 queries