gem install gtk3
LinkButton
a hyperlink widget.
require 'gtk3'
class LinkButtonWindow < Gtk::Window
def initialize
super
set_title 'LinkButton Demo'
set_border_width 10
button = Gtk::LinkButton.new('http://dev.to', 'Visit DEV')
add button
end
end
win = LinkButtonWindow.new
win.signal_connect('destroy') { Gtk.main_quit }
win.show_all
Gtk.main
Top comments (0)