# How to use glade with Juno?

**URL:** <https://discourse.julialang.org/t/how-to-use-glade-with-juno/7336>\
**Category:** General Usage\
**Tags:** question\
**Created:** [November 27, 2017, 2:40pm UTC](https://discourse.julialang.org/t/how-to-use-glade-with-juno/7336 "2017-11-27T14:40:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ash\_S](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Ash\_S](https://discourse.julialang.org/u/Ash_S)\
**Post date:** [November 27, 2017, 2:40pm UTC](https://discourse.julialang.org/t/how-to-use-glade-with-juno/7336/1 "2017-11-27T14:40:25Z")

</div>

I’m trying to make a GUI with julia so I tried using Glade since that was the builder recommended by Julia docs in this [link](http://juliagraphics.github.io/Gtk.jl/latest/manual/builder.html). I tried using the code posted to connect the widgets to my code in Juno but keep getting a “glade is undefined” error. So I tried saving the glade into the same file as the code and tried putting it in my Desktop but that doesn’t work either.

 ![Gtkcode](https://global.discourse-cdn.com/julialang/original/3X/4/c/4c6f93ff743eccb2cd8d80a81994506b3df8f563.png)

 ![gladeError1](https://global.discourse-cdn.com/julialang/original/3X/a/f/af9bf5818e84fcba1575fa6afdf8e61ede33cd34.png)

Does anyone mind explaining how to connect the glade widgets? I’m kinda new to Julia so sorry if I am missing something obvious!

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [November 27, 2017, 3:39pm UTC](https://discourse.julialang.org/t/how-to-use-glade-with-juno/7336/2 "2017-11-27T15:39:36Z")

</div>

If you have a file called `myapp.glade` then you’ll need to call `@GtkBuilder(filename="myapp.glade")`; the missing quotes seem to be an error in the docs.  
This is in no way Juno specific, btw.

---

<div class="post-metadata">

**Author:** ![Ash\_S](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Ash\_S](https://discourse.julialang.org/u/Ash_S)\
**Post date:** [November 27, 2017, 10:21pm UTC](https://discourse.julialang.org/t/how-to-use-glade-with-juno/7336/3 "2017-11-27T22:21:15Z")

</div>

Thanks for the reply. I tried what you said but it still doesn’t work.

 ![gladeError](https://global.discourse-cdn.com/julialang/original/3X/b/4/b4d3a3047d49361894db42c845c3f652c33c9eb1.png)

Do you happen to have any other suggestions?

---

<div class="post-metadata">

**Author:** ![Ash\_S](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Ash\_S](https://discourse.julialang.org/u/Ash_S)\
**Post date:** [November 27, 2017, 10:51pm UTC](https://discourse.julialang.org/t/how-to-use-glade-with-juno/7336/4 "2017-11-27T22:51:42Z")

</div>

Thanks for the reply. I tried what you said but it still doesn’t work.

 ![gladeError](https://global.discourse-cdn.com/julialang/original/3X/b/4/b4d3a3047d49361894db42c845c3f652c33c9eb1.png)  
Do you happen to have any other suggestions?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [November 27, 2017, 11:01pm UTC](https://discourse.julialang.org/t/how-to-use-glade-with-juno/7336/5 "2017-11-27T23:01:58Z")

</div>

No clue.  
Pinging @tknopp though, he’ll probably have an idea.

---

<div class="post-metadata">

**Author:** ![tobias.knopp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tobias.knopp/32/7551_2.png) [@tobias.knopp](https://discourse.julialang.org/u/tobias.knopp)\
**Post date:** [November 27, 2017, 11:24pm UTC](https://discourse.julialang.org/t/how-to-use-glade-with-juno/7336/6 "2017-11-27T23:24:32Z")

</div>

not really. The at-sign should not be necessary anymore but this would not invoke that error.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [November 28, 2017, 7:11am UTC](https://discourse.julialang.org/t/how-to-use-glade-with-juno/7336/7 "2017-11-28T07:11:51Z")

</div>

It seems like it is trying to call `GTKBuilderLeaf(::String)` but `GTKBuilderLeaf` only has a keyword function.

What happens if you just directly call `GtkBuilderLeaf(filename="glade.glade")`?

---

<div class="post-metadata">

**Author:** ![Ash\_S](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Ash\_S](https://discourse.julialang.org/u/Ash_S)\
**Post date:** [November 28, 2017, 1:35pm UTC](https://discourse.julialang.org/t/how-to-use-glade-with-juno/7336/8 "2017-11-28T13:35:26Z")

</div>

That works!!! Thank you so much! 😁
