Simple windowed application: Difference between revisions
m
update for newer Gtk version
m (update for newer Gtk version) |
|||
Line 1,813:
=={{header|Julia}}==
Uses the Gtk library.
<lang julia>using Gtk.ShortNames
function clickwindow()
Line 1,824 ⟶ 1,822:
push!(vbox, lab)
push!(vbox, but)
callback(w) = (clicks += 1;
id = signal_connect(callback, but,
Gtk.showall(win)▼
c = Condition()
endit(w) = notify(c)
signal_connect(endit, win, :destroy)
▲ showall(win)
wait(c)
end
clickwindow()
|