# \#gtk

**URL:** https://discourse.julialang.org/tag/gtk/480.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [GTK screen updating](https://discourse.julialang.org/t/gtk-screen-updating/137322)

<div class="topic-metadata">

**Author:** [@isaac-aderemi](https://discourse.julialang.org/u/isaac-aderemi)\
**Replies:** 1\
**Last updated:** [June 6, 2026, 5:50pm UTC](https://discourse.julialang.org/t/gtk-screen-updating/137322 "2026-06-06T17:50:30Z")

</div>

My question How does a person update the screen in gtk for a game or video updating? notes Glade was used to make the following code and I was wondering how I would update the screen (the ppm that is currently being use…

---

## [\[Gtk4\] @sigatom](https://discourse.julialang.org/t/gtk4-sigatom/133562)

<div class="topic-metadata">

**Author:** [@AdamWysokinski](https://discourse.julialang.org/u/AdamWysokinski)\
**Replies:** 3\
**Last updated:** [October 31, 2025, 7:45am UTC](https://discourse.julialang.org/t/gtk4-sigatom/133562 "2025-10-31T07:45:49Z")

</div>

This works in Gtk.jl: using Gtk win = GtkWindow("test") g = GtkGrid() sb = GtkSpinButton(1, 10, 1) s = GtkScale(false, 1, 10, 1) g\[1, 1\] = sb g\[1, 2\] = s push!(win, g) showall(win) signal\_connect(s, "value\_changed") do …

---

## [GLMakie + ProfileView.jl segmentation fault](https://discourse.julialang.org/t/glmakie-profileview-jl-segmentation-fault/132515)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 4\
**Last updated:** [September 23, 2025, 2:34pm UTC](https://discourse.julialang.org/t/glmakie-profileview-jl-segmentation-fault/132515 "2025-09-23T14:34:01Z")

</div>

After switching to Makie v0.24, I noticed that it no longer plays well with ProfileView.jl But at the moment I am not really sure, whether that is my laptop’s issue or even something coming from ProfileView.jl ? Could …

---

## [Gtk4 dropdown not working](https://discourse.julialang.org/t/gtk4-dropdown-not-working/128334)

<div class="topic-metadata">

**Author:** [@TheHedgehog2000](https://discourse.julialang.org/u/TheHedgehog2000)\
**Replies:** 0\
**Last updated:** [April 23, 2025, 2:53pm UTC](https://discourse.julialang.org/t/gtk4-dropdown-not-working/128334 "2025-04-23T14:53:30Z")

</div>

I am following the minimum working examples in this link: Dropdown widgets · Gtk4.jl. Neither works for me. In either case, when I try to select a new option from the drop down, nothing happens. Presumably, this is an is…

---

## [ProfileView (Cairo? Gtk4?) started using some odd font, but why?](https://discourse.julialang.org/t/profileview-cairo-gtk4-started-using-some-odd-font-but-why/125780)

<div class="topic-metadata">

**Author:** [@HanD](https://discourse.julialang.org/u/HanD)\
**Replies:** 14\
**Last updated:** [February 12, 2025, 8:10am UTC](https://discourse.julialang.org/t/profileview-cairo-gtk4-started-using-some-odd-font-but-why/125780 "2025-02-12T08:10:39Z")

</div>

I’v been using ProfileView.jl for some time now, with success. However, recently, the display changed, and the tooltips and various other displayed strings started using some font which doesn’t have regular ASCII charact…

---

## [Gtk4.jl open\_dialog warning](https://discourse.julialang.org/t/gtk4-jl-open-dialog-warning/117553)

<div class="topic-metadata">

**Author:** [@janonime](https://discourse.julialang.org/u/janonime)\
**Replies:** 0\
**Last updated:** [July 27, 2024, 10:09pm UTC](https://discourse.julialang.org/t/gtk4-jl-open-dialog-warning/117553 "2024-07-27T22:09:26Z")

</div>

Minimal working example of the problem: using Gtk4 win = GtkWindow("Plasmatrace") open\_dialog("Pick a file to open", win) do filename println(filename) end destroy(win) Storing this script in a file called test.j…

---

## [Resize widgets in gtk.jl](https://discourse.julialang.org/t/resize-widgets-in-gtk-jl/113346)

<div class="topic-metadata">

**Author:** [@Votline](https://discourse.julialang.org/u/Votline)\
**Replies:** 0\
**Last updated:** [April 22, 2024, 3:54pm UTC](https://discourse.julialang.org/t/resize-widgets-in-gtk-jl/113346 "2024-04-22T15:54:36Z")

</div>

How can I change the size of the widget or set a fixed value for the window (so that it is not stretched by widgets)? (resize!(win, x, y) does not set a fixed value))

---

## [GTK4 compound widget](https://discourse.julialang.org/t/gtk4-compound-widget/111584)

<div class="topic-metadata">

**Author:** [@yjr](https://discourse.julialang.org/u/yjr)\
**Replies:** 3\
**Last updated:** [March 18, 2024, 11:13pm UTC](https://discourse.julialang.org/t/gtk4-compound-widget/111584 "2024-03-18T23:13:01Z")

</div>

Hello, I’m struggling to make a compound widget using struct under GTK4, does anyone have an example ? Thanks

---

## [How to keep the cursor focus on the REPL?](https://discourse.julialang.org/t/how-to-keep-the-cursor-focus-on-the-repl/109321)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 6\
**Last updated:** [January 27, 2024, 8:09pm UTC](https://discourse.julialang.org/t/how-to-keep-the-cursor-focus-on-the-repl/109321 "2024-01-27T20:09:46Z")

</div>

I need help with Gtk.jl for the following basic problem. I am trying to get input from the REPL in a closed loop program and update a Gtk window that keeps track of all items generated during program execution. See the…

---

## [Change the focus of Gtk windows](https://discourse.julialang.org/t/change-the-focus-of-gtk-windows/19560)

<div class="topic-metadata">

**Author:** [@Carsten](https://discourse.julialang.org/u/Carsten)\
**Replies:** 9\
**Last updated:** [January 19, 2024, 2:51pm UTC](https://discourse.julialang.org/t/change-the-focus-of-gtk-windows/19560 "2024-01-19T14:51:03Z")

</div>

I have two overlapping Gtk-windows open. How can I change the focus via button clicking to get the hidden Gtk-window on top? Any advice would be very welcome. Carsten

---

## [Gtk GUI + returning a value from a function](https://discourse.julialang.org/t/gtk-gui-returning-a-value-from-a-function/108299)

<div class="topic-metadata">

**Author:** [@AdamWysokinski](https://discourse.julialang.org/u/AdamWysokinski)\
**Replies:** 2\
**Last updated:** [January 3, 2024, 5:00pm UTC](https://discourse.julialang.org/t/gtk-gui-returning-a-value-from-a-function/108299 "2024-01-03T17:00:48Z")

</div>

Hi, I’m using Gtk to display GUI inside my function. I’d like the function to return a value generated in that GUI, e.g. Gtk.GtkSpinButton value. How can this be done? I need to keep the window open until the value is s…

---

## [Recursive loop of callbacks in signal connect method of Gtk4 widgets](https://discourse.julialang.org/t/recursive-loop-of-callbacks-in-signal-connect-method-of-gtk4-widgets/107274)

<div class="topic-metadata">

**Author:** [@apurvdarji](https://discourse.julialang.org/u/apurvdarji)\
**Replies:** 1\
**Last updated:** [December 7, 2023, 2:53pm UTC](https://discourse.julialang.org/t/recursive-loop-of-callbacks-in-signal-connect-method-of-gtk4-widgets/107274 "2023-12-07T14:53:25Z")

</div>

I am trying to do bi-directional binding of two textboxes which are GtkEntry widgets from Gtk4.jl. The two textboxes should have the same text. I am using signal connect handlers on change events to achieve that. But it …

---

## [Failed to load module canberra-gtk-module](https://discourse.julialang.org/t/failed-to-load-module-canberra-gtk-module/96402)

<div class="topic-metadata">

**Author:** [@samq](https://discourse.julialang.org/u/samq)\
**Replies:** 3\
**Last updated:** [December 6, 2023, 5:27am UTC](https://discourse.julialang.org/t/failed-to-load-module-canberra-gtk-module/96402 "2023-12-06T05:27:31Z")

</div>

OS = Ubuntu 18.04 Julia version = Version 1.8.5 (2023-01-08) When using Julia REPL, I type 'using Gtk and every time I get 3 ‘Gtk-Message: 09:14:02.463: Failed to load module “canberra-gtk-module”’ messages. If I type …

---

## [How to display an image in full screen on a second monitor?](https://discourse.julialang.org/t/how-to-display-an-image-in-full-screen-on-a-second-monitor/100796)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 14\
**Last updated:** [November 7, 2023, 12:41pm UTC](https://discourse.julialang.org/t/how-to-display-an-image-in-full-screen-on-a-second-monitor/100796 "2023-11-07T12:41:27Z")

</div>

Hello! I’m currently working on developing a program to control a Spatial Light Modulator (SLM), which is a lab equipment used in the field of Structured Light. Essentially, an SLM allows for the projection of interesti…

---

## [Help me with using GtkPaned in Gtk.jl](https://discourse.julialang.org/t/help-me-with-using-gtkpaned-in-gtk-jl/96424)

<div class="topic-metadata">

**Author:** [@samq](https://discourse.julialang.org/u/samq)\
**Replies:** 1\
**Last updated:** [October 29, 2023, 10:52pm UTC](https://discourse.julialang.org/t/help-me-with-using-gtkpaned-in-gtk-jl/96424 "2023-10-29T22:52:16Z")

</div>

OS = Ubuntu 18.04 Julia version = 1.8.5 I looked at the Gtk.jl web site, but could not discern how to resolve the ‘ERROR: LoadError: MethodError(GtkPanedLeaf, (0, 200), 0xffffffffffffffff)’. Using Google, I couldn’t fi…

---

## [Unknown memory allocation when displaying pixels in Gtk.jl](https://discourse.julialang.org/t/unknown-memory-allocation-when-displaying-pixels-in-gtk-jl/82566)

<div class="topic-metadata">

**Author:** [@Alan\_Bahm](https://discourse.julialang.org/u/Alan_Bahm)\
**Replies:** 1\
**Last updated:** [October 9, 2023, 9:47am UTC](https://discourse.julialang.org/t/unknown-memory-allocation-when-displaying-pixels-in-gtk-jl/82566 "2023-10-09T09:47:29Z")

</div>

Hi all! I have some memory allocation I don’t understand when using Gtk, and hoping for some advice. I’ve built an application to display and tweak (many) scientifically computed 2kx2k images, and they are displayed …

---

## [How to do context menus in Gtk4?](https://discourse.julialang.org/t/how-to-do-context-menus-in-gtk4/102569)

<div class="topic-metadata">

**Author:** [@mwlidar](https://discourse.julialang.org/u/mwlidar)\
**Replies:** 2\
**Last updated:** [August 8, 2023, 7:49am UTC](https://discourse.julialang.org/t/how-to-do-context-menus-in-gtk4/102569 "2023-08-08T07:49:45Z")

</div>

Hi! After some trying I learned how to make a popup-menu over a widget (context-menu) in Gtk3. Now I’m trying to do the same in Gtk4, where all seems to have changed. The code below defines a GtkPopoverMenu from a GMen…

---

## [Listview grouping popup window examples](https://discourse.julialang.org/t/listview-grouping-popup-window-examples/96092)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 5\
**Last updated:** [March 18, 2023, 12:05pm UTC](https://discourse.julialang.org/t/listview-grouping-popup-window-examples/96092 "2023-03-18T12:05:32Z")

</div>

When running a closed-loop menu-driven program, that runs on the REPL and in which different types of data items are loaded, created, deleted, etc., I would like to keep track of them in a grouped listview popup window. …

---

## [GTK4.jl: Canvas not visible when pushed to a box](https://discourse.julialang.org/t/gtk4-jl-canvas-not-visible-when-pushed-to-a-box/93959)

<div class="topic-metadata">

**Author:** [@sarath-menon](https://discourse.julialang.org/u/sarath-menon)\
**Replies:** 1\
**Last updated:** [February 3, 2023, 11:32am UTC](https://discourse.julialang.org/t/gtk4-jl-canvas-not-visible-when-pushed-to-a-box/93959 "2023-02-03T11:32:02Z")

</div>

Hello. I am trying to display a canvas GTK4.jl. The documentation example works. But when I push the canvas to a GTKBox and push the box to the window (instead of pushing the canvas directly to the window), the canvas …

---

## [Visualize long pmap process using Gtk.ProgressBarLeaf](https://discourse.julialang.org/t/visualize-long-pmap-process-using-gtk-progressbarleaf/93792)

<div class="topic-metadata">

**Author:** [@abbe](https://discourse.julialang.org/u/abbe)\
**Replies:** 0\
**Last updated:** [January 30, 2023, 8:51pm UTC](https://discourse.julialang.org/t/visualize-long-pmap-process-using-gtk-progressbarleaf/93792 "2023-01-30T20:51:53Z")

</div>

Hey all, I was wondering if it is possible to view the progress of the pmap function using GtkProgressBar when pmap is running on multiple (or all) processes. using Distributed, Statistics id = addprocs() @everywhere b…

---

## [Compiling Gtk UI app with PackageCompiler](https://discourse.julialang.org/t/compiling-gtk-ui-app-with-packagecompiler/92022)

<div class="topic-metadata">

**Author:** [@sschmidhuber](https://discourse.julialang.org/u/sschmidhuber)\
**Replies:** 0\
**Last updated:** [December 22, 2022, 9:00pm UTC](https://discourse.julialang.org/t/compiling-gtk-ui-app-with-packagecompiler/92022 "2022-12-22T21:00:44Z")

</div>

Hello all, I wrote a little desktop application with a Gtk frontend, it works fine in general, just the start up time is long. After that it works nicely. Also I would like to run it on machines without an Julia environ…

---

## [Where do I find the GTK widget properties?](https://discourse.julialang.org/t/where-do-i-find-the-gtk-widget-properties/80299)

<div class="topic-metadata">

**Author:** [@Rossati](https://discourse.julialang.org/u/Rossati)\
**Replies:** 5\
**Last updated:** [December 8, 2022, 8:56am UTC](https://discourse.julialang.org/t/where-do-i-find-the-gtk-widget-properties/80299 "2022-12-08T08:56:03Z")

</div>

Hi I started using Julia to build a form generator by GTK and I haven’t find a list of widget properties so, for example, for set the button width. I have tried this: function createButton(caption,width) btn = …

---

## [No console window with Gtk](https://discourse.julialang.org/t/no-console-window-with-gtk/89979)

<div class="topic-metadata">

**Author:** [@tresgrospipo](https://discourse.julialang.org/u/tresgrospipo)\
**Replies:** 0\
**Last updated:** [November 9, 2022, 12:15pm UTC](https://discourse.julialang.org/t/no-console-window-with-gtk/89979 "2022-11-09T12:15:17Z")

</div>

Hi everyone, new in Julia, I need to have a GUI on Julia in WIN11 (can’t choose OS), I choose Gtk.jl and test a simple script using Gtk win = GtkWindow(“My First Gtk.jl Program”, 400, 200) b = GtkButton(“Click Me”) p…

---

## [How to structure a Gtk app](https://discourse.julialang.org/t/how-to-structure-a-gtk-app/89647)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 3\
**Last updated:** [November 3, 2022, 7:30am UTC](https://discourse.julialang.org/t/how-to-structure-a-gtk-app/89647 "2022-11-03T07:30:46Z")

</div>

When looking at Gyk examples a lot of the apps use global variables. How can this be avoided while keeping access to the model values(like data, a figure object,…) What I saw using Gtk win = GtkWindow() f = Figure() …

---

## [Mono spaced font in Glade GtkEntry widget](https://discourse.julialang.org/t/mono-spaced-font-in-glade-gtkentry-widget/88626)

<div class="topic-metadata">

**Author:** [@ArchieCall](https://discourse.julialang.org/u/ArchieCall)\
**Replies:** 0\
**Last updated:** [October 12, 2022, 3:04pm UTC](https://discourse.julialang.org/t/mono-spaced-font-in-glade-gtkentry-widget/88626 "2022-10-12T15:04:05Z")

</div>

I am using Glade to make the form for a GtkEntry widget. I have it properly working in Julia to accept user input from GtkEntry widgets. My question is what setting will make the entered text appear in a mono spaced fon…

---

## [Problem with GUI ask\_dialog](https://discourse.julialang.org/t/problem-with-gui-ask-dialog/73224)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 18\
**Last updated:** [September 23, 2022, 8:44am UTC](https://discourse.julialang.org/t/problem-with-gui-ask-dialog/73224 "2022-09-23T08:44:46Z")

</div>

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() …

---

## [Use css with Gtk.jl](https://discourse.julialang.org/t/use-css-with-gtk-jl/72786)

<div class="topic-metadata">

**Author:** [@MeteorBizone](https://discourse.julialang.org/u/MeteorBizone)\
**Replies:** 1\
**Last updated:** [December 29, 2021, 8:39pm UTC](https://discourse.julialang.org/t/use-css-with-gtk-jl/72786 "2021-12-29T20:39:32Z")

</div>

How I can usw css in Gtk.jl?

---

## [How to detect a container resize event in GTK](https://discourse.julialang.org/t/how-to-detect-a-container-resize-event-in-gtk/59624)

<div class="topic-metadata">

**Author:** [@johntrinder](https://discourse.julialang.org/u/johntrinder)\
**Replies:** 2\
**Last updated:** [August 16, 2022, 12:51am UTC](https://discourse.julialang.org/t/how-to-detect-a-container-resize-event-in-gtk/59624 "2022-08-16T00:51:28Z")

</div>

I’ve scoured google but came up with nothing. I’ve done the following: id = signal\_connect(alig, “check-resize”) do widget, event println(“The window was resized”) end where ‘alig’ is a GtkAlignment to which I add a…

---

## [Moving a GTK window](https://discourse.julialang.org/t/moving-a-gtk-window/85729)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [August 15, 2022, 4:40pm UTC](https://discourse.julialang.org/t/moving-a-gtk-window/85729 "2022-08-15T16:40:41Z")

</div>

I have the following code: using Gtk.ShortNames, GtkObservables # define the default values OPTION\_A = false OPTION\_B = false finished = false cb1 = checkbox(OPTION\_A, label="Option A") cb2 = checkbox(OPTION\_B, label…

---

## [How to create a modal dialog with Gtk.jl?](https://discourse.julialang.org/t/how-to-create-a-modal-dialog-with-gtk-jl/85735)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 8\
**Last updated:** [August 15, 2022, 6:17am UTC](https://discourse.julialang.org/t/how-to-create-a-modal-dialog-with-gtk-jl/85735 "2022-08-15T06:17:34Z")

</div>

How can I create a modal dialog with Gtk.jl ? The following code kind-of works: # This example creates a modal dialog with two checkboxes. using Gtk.ShortNames, GtkObservables # define the default values OPTION\_A = fa…

[Next page](https://discourse.julialang.org/tag/gtk/480.md?match_all_tags=true&page=1&tags%5B%5D=gtk)
