Skip to content

Instantly share code, notes, and snippets.

@Miqueas
Created October 16, 2021 04:01
Show Gist options
  • Save Miqueas/3f5fcd3c93277c1eabd05973d855e21a to your computer and use it in GitHub Desktop.
Save Miqueas/3f5fcd3c93277c1eabd05973d855e21a to your computer and use it in GitHub Desktop.
[Nim] Simple GTK 4 example
import gintro/gobject
import gintro/gio
import gintro/gtk4
proc activate(app: gtk4.Application) =
let win = gtk4.newApplicationWindow(app)
win.defaultSize = (800, 600)
win.present()
let app = gtk4.newApplication("org.gtk.example")
app.connect("activate", activate)
discard app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment