DEV Community

kojix2
kojix2

Posted on

3

Ruby/GTK3 - LinkButton

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
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay