# "ask\_dialog()" is not working proberly

**URL:** <https://discourse.julialang.org/t/ask-dialog-is-not-working-proberly/72685>\
**Category:** General Usage\
**Tags:** question, gtk, gui\
**Created:** [December 6, 2021, 11:19pm UTC](https://discourse.julialang.org/t/ask-dialog-is-not-working-proberly/72685 "2021-12-06T23:19:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amro](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Amro](https://discourse.julialang.org/u/Amro)\
**Post date:** [December 6, 2021, 11:19pm UTC](https://discourse.julialang.org/t/ask-dialog-is-not-working-proberly/72685/1 "2021-12-06T23:19:37Z")

</div>

I am using `ask_dialog()` in my code (`Myfile.jl`) and when I run it, a popup window is appeared. However, after clicking any of the two options nothing is happening (it do nothing). While using the below command in REPL it works well. How can I solve it?

```julia
using Gtk
state = ask_dialog("Do like fruits?", "No", "Yes")

```

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [December 6, 2021, 11:30pm UTC](https://discourse.julialang.org/t/ask-dialog-is-not-working-proberly/72685/2 "2021-12-06T23:30:08Z")

</div>

[https://github.com/JuliaGraphics/Gtk.jl/issues/576](https://github.com/JuliaGraphics/Gtk.jl/issues/576)
