#!/usr/bin/ruby -w
# Encoding: UTF-8
# frozen_string_literal: true
# =========================================================================== #
require 'gtk_paradise'
require 'colours/colours_e_autoinclude.rb'

e 'This will test some gtk2-related functionality.'
e
e 'Next testing a simple Widget, put onto Gtk::Runner.'
e
_ = Gtk::Runner.new

hbox  = Gtk.hbox
entry = Gtk.entry
entry.set_text 'Hello World!'
entry.on_click_event {
  :highlight_text # Here we will highlight the text.
}
entry2 = Gtk.entry('')
entry2.set_text 'abc in the second label'
hbox << entry
hbox << entry2
_ << hbox
_.top_left_then_show_all_then_run