# https://juliagraphics.github.io/Gtk.jl/latest/manual/layout/#Grid-1
using Gtk

# win = GtkWindow("A new window")
# g = GtkGrid()
# a = GtkEntry()  # a widget for entering text
# set_gtk_property!(a, :text, "This is Gtk!")
# b = GtkCheckButton("Check me!")
# c = GtkScale(false, 0:10)     # a slider

win = GtkWindow("A new window")
g = GtkGrid()
a = GtkEntry()  # a widget for entering text
set_gtk_property!(a, :text, "This is Gtk!")
b = GtkCheckButton("Check me!")
c = GtkScale(false, 0:10)

# # Now let's place these graphical elements into the Grid:
# g[1,1] = a    # Cartesian coordinates, g[x,y]
# g[2,1] = b
# g[1:2,2] = c  # spans both columns
# set_gtk_property!(g, :column_homogeneous, true)
# set_gtk_property!(g, :column_spacing, 15)  # introduce a 15-pixel gap between columns
# push!(win, g)
# showall(win)

g[1,1] = a
g[2,1] = b
g[1:2,2] = c
set_gtk_property!(g, :column_homogeneous, true)
set_gtk_property!(g, :column_spacing, 15)
push!(win,g)

showall(win)