# \#gtk4

**URL:** https://discourse.julialang.org/tag/gtk4/1489.md

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

---

## [\[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 …

---

## [Gtk4.jl get selected values from GtkMultiSelection](https://discourse.julialang.org/t/gtk4-jl-get-selected-values-from-gtkmultiselection/131596)

<div class="topic-metadata">

**Author:** [@jwright11](https://discourse.julialang.org/u/jwright11)\
**Replies:** 3\
**Last updated:** [August 17, 2025, 12:31am UTC](https://discourse.julialang.org/t/gtk4-jl-get-selected-values-from-gtkmultiselection/131596 "2025-08-17T00:31:15Z")

</div>

Does anyone know how to get the user-selected values from a GtkMultiSelection in Gtk4.jl? I am trying the example code found here and shown below. I can’t seem to find any documentation on how to do it. using Gtk4 mod…

---

## [Weird behavior of Keyboard events under Gtk4 on Linux](https://discourse.julialang.org/t/weird-behavior-of-keyboard-events-under-gtk4-on-linux/129219)

<div class="topic-metadata">

**Author:** [@mwlidar](https://discourse.julialang.org/u/mwlidar)\
**Replies:** 1\
**Last updated:** [May 22, 2025, 7:37am UTC](https://discourse.julialang.org/t/weird-behavior-of-keyboard-events-under-gtk4-on-linux/129219 "2025-05-22T07:37:08Z")

</div>

After testing my application on a Linux system I get some strange behavior of keyboard events. Here is a MWE to illustrate it: win = GtkWindow("Key Test", 300, 300) eck = GtkEventControllerKey(win) signal\_c…

---

## [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…

---

## [GtkDropDown menu list update](https://discourse.julialang.org/t/gtkdropdown-menu-list-update/124355)

<div class="topic-metadata">

**Author:** [@daniel.flono](https://discourse.julialang.org/u/daniel.flono)\
**Replies:** 2\
**Last updated:** [January 2, 2025, 12:28pm UTC](https://discourse.julialang.org/t/gtkdropdown-menu-list-update/124355 "2025-01-02T12:28:37Z")

</div>

Hello Everyone, I am creating my first GUI and got stuck. I defined the GUI in xml format and then used GTK4 and the GtkBuilder in the Julia code. The window appears with no problem. I just can’t figure out how to chang…

---

## [Adding a filter to open\_dialogue() in Gtk4](https://discourse.julialang.org/t/adding-a-filter-to-open-dialogue-in-gtk4/122994)

<div class="topic-metadata">

**Author:** [@elwwan](https://discourse.julialang.org/u/elwwan)\
**Replies:** 1\
**Last updated:** [November 24, 2024, 1:24am UTC](https://discourse.julialang.org/t/adding-a-filter-to-open-dialogue-in-gtk4/122994 "2024-11-24T01:24:43Z")

</div>

Hello, I’m trying to add a filter to a file selection. Here is my current code : function on\_choose\_file\_button\_click(w) open\_dialog("Choose Data File"; start\_folder = pwd()) do filename global data\_file\_path = f…

---

## [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…

---

## [Change font size in Gtk4.jl](https://discourse.julialang.org/t/change-font-size-in-gtk4-jl/112223)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [March 28, 2024, 9:41am UTC](https://discourse.julialang.org/t/change-font-size-in-gtk4-jl/112223 "2024-03-28T09:41:01Z")

</div>

How can I change the font size of a label in Gtk4.jl? I have the following code: using Gtk4 win = GtkWindow("My First Gtk4.jl Program", 400, 200) hbox = GtkBox(:h) # :h makes a horizontal layout, :v a vertical layout…

---

## [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

---

## [Allow for auto-scaling of image in Gtk4](https://discourse.julialang.org/t/allow-for-auto-scaling-of-image-in-gtk4/111624)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 3\
**Last updated:** [March 18, 2024, 11:04pm UTC](https://discourse.julialang.org/t/allow-for-auto-scaling-of-image-in-gtk4/111624 "2024-03-18T23:04:15Z")

</div>

In the following MWE, we can resize the window and the contained image fills out the space accordingly (while retaining the aspect ratio): using Gtk4, GtkObservables using Colors win = GtkWindow("Example") h = 100 c = …

---

## [GTK4 DropDown](https://discourse.julialang.org/t/gtk4-dropdown/107359)

<div class="topic-metadata">

**Author:** [@SergeantMike67](https://discourse.julialang.org/u/SergeantMike67)\
**Replies:** 1\
**Last updated:** [December 9, 2023, 6:28pm UTC](https://discourse.julialang.org/t/gtk4-dropdown/107359 "2023-12-09T18:28:55Z")

</div>

Keeping it simple about Drop Down widget how do you capture the item into a variable for use in a SQL query? how do you put in a list of new items into a previously created Drop Down? These seem like very basic …
