# Gtk::Tooltip

**URL:** <https://www.ruby-forum.com/t/gtk-tooltip/212245>\
**Category:** Ruby-Gnome 2\
**Created:** [September 26, 2011, 10:53pm UTC](https://www.ruby-forum.com/t/gtk-tooltip/212245 "2011-09-26T22:53:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [September 26, 2011, 10:53pm UTC](https://www.ruby-forum.com/t/gtk-tooltip/212245/1 "2011-09-26T22:53:57Z")

</div>

Lately I’ve been playing with Tooltips a bit.

As in, subclass a button who also shows a tooltip:

desc = ‘To restart the game you can also click ALT+R.’  
Gtk::Tooltips.new.set\_tip(self, desc, nil)

Now I compared this to HTML and Javascript. Perhaps you know the fancy  
popup boxes you can do in HTML and Javascript?

With colours and a coloured border. And they even move a bit when the  
mouse moves.

I was wondering whether there is a very easy way to style those Tooltip  
boxes in GTK, perhaps in ruby-gtk3?

HTML, CSS and Javascript gives me a lot of freedom, I feel that quite  
often the same is much much harder in Gtk, at least up to version 2 (I  
have not played much with GTK 3 yet)
