#!/usr/bin/ruby -w
# Encoding: UTF-8
# frozen_string_literal: true
# =========================================================================== #
require 'gtk4'

alias e puts

entry = Gtk::Entry.new

entry.set_text('OK')

# .set_focus() appears to have been removed from ruby-gtk4.
# entry.set_focus(true)
# entry.set_focus_child(true)
e entry.text
# e 'The available methods are:'
# e
# pp entry.methods.sort
# e
# # pp entry.events
# event_controller = Gtk::EventController.new
# pp event_controller.methods.sort
# entry.add_controller(event_controller)