Problem with GUI ask_dialog

Amro
Thu, 16 Dec 2021 19:14:38 +0000
General Usage

Julia is freezing when I use ask_dialog() in julia file. I added extra code as suggested to let it work, however, the problem is still existing. Any solution?

using Gtk
win = GtkWindow("gtkwait")
if !isinteractive()
    @async Gtk.gtk_main()
    Gtk.waitforsignal(win,:destroy)
  end
  state = ask_dialog("Like or Not?", "No", "Yes")

19 posts - 4 participants