# Gtk.jl - GTKFileChooserButton question

**URL:** <https://discourse.julialang.org/t/gtk-jl-gtkfilechooserbutton-question/24526>\
**Category:** General Usage\
**Created:** [May 23, 2019, 3:22pm UTC](https://discourse.julialang.org/t/gtk-jl-gtkfilechooserbutton-question/24526 "2019-05-23T15:22:02Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [May 23, 2019, 5:55pm UTC](https://discourse.julialang.org/t/gtk-jl-gtkfilechooserbutton-question/24526/6 "2019-05-23T17:55:30Z")

</div>

```julia
function on_fileChooser_file_set(var)
	filename = Gtk.bytestring(Gtk.GAccessor.filename(var),true)
	println("this is the filename: ", filename)
	#println("I'm here.")
end

```

I cannot test because I don’t have the glade file. Best thing to test is that you provide a minimal working example (MWE). Instead of providing the glade file, you can also paste the content of the glade file into a string `my_ui_string` and call `GtkBuilder(buffer=my_ui_string)`.

---

_[View the full topic](https://discourse.julialang.org/t/gtk-jl-gtkfilechooserbutton-question/24526)._
