Colour pinstripe/Display: Difference between revisions

Content deleted Content added
Wherrera (talk | contribs)
Wherrera (talk | contribs)
Line 552: Line 552:


const can = @GtkCanvas()
const can = @GtkCanvas()
const win = GtkWindow(can, "Colour pinstripe/Display", 500, 500)
const win = GtkWindow(can, "Colour pinstripe/Display", 400, 400)
const colors = [colorant"black", colorant"red", colorant"green", colorant"blue",
const colors = [colorant"black", colorant"red", colorant"green", colorant"blue",
colorant"magenta", colorant"cyan", colorant"yellow", colorant"white"]
colorant"magenta", colorant"cyan", colorant"yellow", colorant"white"]
Line 578: Line 578:


show(can)
show(can)
cond = Condition()
const cond = Condition()
endit(w) = notify(cond)
endit(w) = notify(cond)
signal_connect(endit, win, :destroy)
signal_connect(endit, win, :destroy)