Skip to content
loading...

Ruby/GTK3 - LinkButton

github logo ・1 min read  

gem install gtk3

LinkButton

a hyperlink widget.

linkbutton

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
twitter logo DISCUSS
Classic DEV Post from Sep 11 '19

Are You a Mediocre Developer? ME TOO

kojix2 profile image
Ruby & Bioinformatics
JOIN DEV NOW

For community. For your career.