# No console window with Gtk

**URL:** https://discourse.julialang.org/t/no-console-window-with-gtk/89979
**Category:** Visualization
**Tags:** gtk
**Created:** [November 9, 2022, 12:15pm UTC](https://discourse.julialang.org/t/no-console-window-with-gtk/89979 "2022-11-09T12:15:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tresgrospipo](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tresgrospipo](https://discourse.julialang.org/u/tresgrospipo)
#### Post date: [November 9, 2022, 12:15pm UTC](https://discourse.julialang.org/t/no-console-window-with-gtk/89979/1 "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”)  
push!(win,b)  
function on\_button\_clicked(w)  
set\_gtk\_property!(win, :title, “New title”)  
end  
signal\_connect(on\_button\_clicked, b, “clicked”)  
showall(win)  
if !isinteractive()  
@async Gtk.gtk\_main()  
Gtk.waitforsignal(win,:destroy)  
end

I discover that I need the last four lines to keep the program opened (when not lauched in REPL) !

What I cannot find on internet including this forum, when I launch the script directly ie not by include in REPL, is to remove the console window which launches along with Gtk window ???

Any Idea ? You will have my endless gratitude …
