# Entrys with Gtk

**URL:** <https://discourse.julialang.org/t/entrys-with-gtk/37008>\
**Category:** General Usage\
**Tags:** guis\
**Created:** [April 4, 2020, 8:42am UTC](https://discourse.julialang.org/t/entrys-with-gtk/37008 "2020-04-04T08:42:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luanvehe9123](https://avatars.discourse-cdn.com/v4/letter/l/90db22/32.png) [@luanvehe9123](https://discourse.julialang.org/u/luanvehe9123)\
**Post date:** [April 4, 2020, 8:42am UTC](https://discourse.julialang.org/t/entrys-with-gtk/37008/1 "2020-04-04T08:42:59Z")

</div>

Hello I am new in this software, I am designing an interfaz using Gtk, but I have some problems using entrys, I can´t do that my variables saves when I enter the numerical value in an entry. Help me please.

---

<div class="post-metadata">

**Author:** ![Skoffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skoffer/32/378_2.png) [@Skoffer](https://discourse.julialang.org/u/Skoffer)\
**Post date:** [April 4, 2020, 9:32am UTC](https://discourse.julialang.org/t/entrys-with-gtk/37008/2 "2020-04-04T09:32:44Z")

</div>

Can you provide MWE (minimum working example) of the problems that you have? Please follow this guidelines: [Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757)

---

<div class="post-metadata">

**Author:** ![luanvehe9123](https://avatars.discourse-cdn.com/v4/letter/l/90db22/32.png) [@luanvehe9123](https://discourse.julialang.org/u/luanvehe9123)\
**Post date:** [April 4, 2020, 11:07am UTC](https://discourse.julialang.org/t/entrys-with-gtk/37008/3 "2020-04-04T11:07:15Z")

</div>

I need to use entry of Gtk package, but I can’t save the variable value that I write in the entry.

 ![Screenshot_20200404-050313](https://global.discourse-cdn.com/julialang/original/3X/9/f/9fa1d0961f0f1b23fd2de6477e992d56ed01cb5a.png)

---

<div class="post-metadata">

**Author:** ![Skoffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skoffer/32/378_2.png) [@Skoffer](https://discourse.julialang.org/u/Skoffer)\
**Post date:** [April 5, 2020, 11:06am UTC](https://discourse.julialang.org/t/entrys-with-gtk/37008/4 "2020-04-05T11:06:09Z")

</div>

Please, post a code and not a screenshot. Screenshots are difficult to read and impossible to copy-paste. To post a code you should enclose it in triple-backticks ```

Also, can you give an MWE of your code? It’s hard to understand what exactly are you doing and where your code fails you.

I suppose it should be something like

```julia
using GTK

ent = Entry()
set_gtk_property!(ent, :text, "My string")
str = get_gtk_property(ent, :text, String)

```

and some other parts that are missing in this piece of code. Do your best to make your example self-contained, so that it runs (or gets to the error that you want help with) as is. This means including package loading (e.g. `using ThatPackage` ) and any data that the code operates on.

Simplify your code to the smallest piece of code that still shows your problem. This step takes the most effort but is the most important for fixing your problem. Short, simple examples tend to get answers quickly.
