Embedding a browser in a GUI

Hello Rubyists!

I’m attempting to overcome my fear of GUIs. Playing with FXRuby right now
(great stuff, but you already knew that). :slight_smile:

Does anyone know of a simple and at least somewhat cross-platform way to
embed a browser in a GUI with one of the available toolkits?

Thanks,
Chad

Saluton!

Does anyone know of a simple and at least somewhat cross-platform
way to embed a browser in a GUI with one of the available toolkits?

WHAT browser you are searching for?

web browser (i.e. HTML rendering engine)

[ ] textual
[ ] graphical

file browser (i.e. File selection means)

[ ] textual
[ ] graphical

Gis,

Josef ‘Jupp’ Schugt

···

/“”“”\ e-mails that do not contain plain text, are larger than |
/ STOP \ 50 KiB, are unsolicited, or contain binarys are ignored |
\ SPAM / unless payment from your side or technical reasons give |
____/ rise to a non-standard treatment. ______________________|

You could use a QTextBrowser, but I don’t know if this is available for
Qt 2.0, and Ruby doesn’t appear to have Qt 3.0 bindings.

You could also consider using GtkHtml (there are already Ruby bindings
for it) or GtkMozEmbed (no Ruby bindings yet, but it shouldn’t be hard).
Both of these require Gtk.

Paul

···

On Fri, May 02, 2003 at 11:25:55PM +0900, Chad Fowler wrote:

Hello Rubyists!

I’m attempting to overcome my fear of GUIs. Playing with FXRuby right now
(great stuff, but you already knew that). :slight_smile:

Does anyone know of a simple and at least somewhat cross-platform way to
embed a browser in a GUI with one of the available toolkits?

I’m attempting to overcome my fear of GUIs. Playing with FXRuby right now
(great stuff, but you already knew that). :slight_smile:

Does anyone know of a simple and at least somewhat cross-platform way to
embed a browser in a GUI with one of the available toolkits?

  1. X toolkits don’t like to embed each others widgets. See
    Freedesktop.org Specifications for communication and especially
    Xembed on this.
  2. who gets ALT-arrow, the application or the embedded browser?

May be Ruby Gnome is worth a look

Bye,
Kero.

Saluton!

Does anyone know of a simple and at least somewhat cross-platform
way to embed a WEB browser in a GUI with one of the
available toolkits?

WHAT browser you are searching for?

web browser (i.e. HTML rendering engine)

[ ] textual
[X] graphical

Good question. I “checked” what I was looking for above in your nifty form.
:slight_smile:

Chad

···

----- Original Message -----
From: “Josef ‘Jupp’ Schugt” jupp@gmx.de
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Saturday, May 03, 2003 5:03 AM
Subject: Re: Embedding a browser in a GUI

Saluton!

Does anyone know of a simple and at least somewhat cross-platform
way to embed a browser in a GUI with one of the available toolkits?

I am using Ruby-Gtk :


@hostname=HOST

@href4 = Gnome::HRef.new(“http://#{@hostname}/DonManolo/report”,
REP_ADMIN)

@href41 = Gnome::HRef.new(“http://#{@hostname}/DonManolo/gerente”,
REP_MANAG)

@href5 =Gnome::HRef.new(“http://#{@hostname}/DonManolo/barcode/dm.php”,
ETIQ_BAR)

cajaX.add @href4
cajaX.add @href41
cajaX.add @href5

This code works for Gnome2 two. Maybe is not easy run Gnome in WinX.

Regards,

Enrique Meza
//

Take a look at http://rubygtkembedmoz.sourceforge.net/

Regards,
Doug

···

On Mon, May 05, 2003 at 10:18:35PM +0900, Paul Brannan wrote:

On Fri, May 02, 2003 at 11:25:55PM +0900, Chad Fowler wrote:

Hello Rubyists!

I’m attempting to overcome my fear of GUIs. Playing with FXRuby right now
(great stuff, but you already knew that). :slight_smile:

Does anyone know of a simple and at least somewhat cross-platform way to
embed a browser in a GUI with one of the available toolkits?

You could use a QTextBrowser, but I don’t know if this is available for
Qt 2.0, and Ruby doesn’t appear to have Qt 3.0 bindings.

You could also consider using GtkHtml (there are already Ruby bindings
for it) or GtkMozEmbed (no Ruby bindings yet, but it shouldn’t be hard).

Bad Luck.

Technically it's impossible with FOX and dammed hard work
to do it with TK. None of them are willing to accept patches
to support this kind of third party widget integration.

The only toolkit that supports this is WX and perhaps QT (don't know)
but there is no non alpha ruby binding.

Saluton!

Does anyone know of a simple and at least somewhat cross-platform
way to embed a WEB browser in a GUI with one of the
^^^^^^^^^^^^^^^^^^^^

Note that you did use XML, not HTML. HTML would be “WEB”.

WHAT browser you are searching for?

web browser (i.e. HTML rendering engine)

[ ] textual
[X] graphical

Good question. I “checked” what I was looking for above in your
nifty form.

If you would have checked ‘textual’ there would be the possibility to
embed lynx - available for most platforms.

The ultimate cross-platform solution would be an HTML rendering
library that comes as a Ruby extension. There is a lot of Free
Software HTML renderering libraries out there. It should be possible
to write Ruby bindings for one of them. The graphical output could be
done using Tk or any other toolkit that allows graphical output and
is capable of reading in mouse moves and clicks.

Gis,

Josef ‘Jupp’ Schugt

···

/“”“”\ e-mails that do not contain plain text, are larger than |
/ STOP \ 50 KiB, are unsolicited, or contain binarys are ignored |
\ SPAM / unless payment from your side or technical reasons give |
____/ rise to a non-standard treatment. ______________________|