# Canvas in Gtk doesn't work while the loop is running

**URL:** <https://discourse.julialang.org/t/canvas-in-gtk-doesnt-work-while-the-loop-is-running/15398>\
**Category:** Internals & Design\
**Tags:** question\
**Created:** [September 23, 2018, 8:02pm UTC](https://discourse.julialang.org/t/canvas-in-gtk-doesnt-work-while-the-loop-is-running/15398 "2018-09-23T20:02:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [September 23, 2018, 9:30pm UTC](https://discourse.julialang.org/t/canvas-in-gtk-doesnt-work-while-the-loop-is-running/15398/4 "2018-09-23T21:30:54Z")

</div>

Please have a look at

> [@Setting size of GtkCanvas and other widgets](https://discourse.julialang.org/t/setting-size-of-gtkcanvas-and-other-widgets/14658):
>
> I’m wanting to make a GUI with several items - I made a GtkBox(:v), and pushed in a GtkBox(:h), followed by a GtkCanvas(), then another GtkBox(:h). The hBoxes contain buttons, labels, etc. When I call showall(win) it brings up the two hBoxes Ok, but the canvas is sqeezed down to a thin line. What I want is for it to fill the space between the hboxes. If I call GtkCanvas(width,height) then that gives me a useable canvas, but it prevents me from resizing the window to less than that size. I t…

where I give a minimal example that works.

---

_[View the full topic](https://discourse.julialang.org/t/canvas-in-gtk-doesnt-work-while-the-loop-is-running/15398)._
