# Glade and Gtk

**URL:** <https://discourse.julialang.org/t/glade-and-gtk/5558>\
**Category:** General Usage\
**Tags:** question\
**Created:** [August 25, 2017, 1:00pm UTC](https://discourse.julialang.org/t/glade-and-gtk/5558 "2017-08-25T13:00:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [August 25, 2017, 1:00pm UTC](https://discourse.julialang.org/t/glade-and-gtk/5558/1 "2017-08-25T13:00:28Z")

</div>

Using `GtkReactive` and `Gtk`, I can create a GUI that creates new GUI elements:

```julia
using GtkReactive, Gtk.ShortNames
w = Window("a")
a = button("a")
b = Box(:h)
push!(b, a)
foreach(a) do _
    cb = checkbox(rand(Bool))
    foreach(println, cb)
    push!(b, cb)
end
push!(w, b)
showall(w)

```

Can anyone show me a MWE of how to do that with `Glade`? How would you add rows and columns with checkboxs in them to an existing `Grid`?

Thanks!

---

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [August 25, 2017, 2:14pm UTC](https://discourse.julialang.org/t/glade-and-gtk/5558/2 "2017-08-25T14:14:45Z")

</div>

Simpler than I thought:

```julia
builder = Builder(filename="file.glade")
w = builder["window"]
add = button(; widget=builder["add"])
foreach(add; init=nothing) do _
    g = builder["grid"]
    empty!(g)
    for i = 1:3, j = 1:5
        g[i,j] = checkbox(true)
    end
    showall(w)
    nothing
end

```
