# \[GUI\] \[Gtk.jl\] UI freezing when signal\_connect used

**URL:** <https://discourse.julialang.org/t/gui-gtk-jl-ui-freezing-when-signal-connect-used/75156>\
**Category:** General Usage\
**Tags:** question, gtk, gui\
**Created:** [January 25, 2022, 4:50am UTC](https://discourse.julialang.org/t/gui-gtk-jl-ui-freezing-when-signal-connect-used/75156 "2022-01-25T04:50:14Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tknopp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tknopp/32/3569_2.png) [@tknopp](https://discourse.julialang.org/u/tknopp)\
**Post date:** [January 25, 2022, 8:47am UTC](https://discourse.julialang.org/t/gui-gtk-jl-ui-freezing-when-signal-connect-used/75156/3 "2022-01-25T08:47:36Z")

</div>

See also this thread: [Threading 1.3: Success Story - #2 by tobias.knopp](https://discourse.julialang.org/t/threading-1-3-success-story/27111/2)

That is actually a better example. You would start Julia with `-t 2` and the `@spawn` command will offload the work to a worker. The `idle_add` than communicates from the worker to the UI threads and passes it update commands.

---

_[View the full topic](https://discourse.julialang.org/t/gui-gtk-jl-ui-freezing-when-signal-connect-used/75156)._
