func main() { flag.Parse() log.AddFilter("file", log.FINEST, log.NewConsoleLogWriter()) defer func() { py.NewLock() py.Finalize() }() var t tbfe t.dorender = make(chan bool, render_chan_len) t.layout = make(map[*backend.View]layout) t.loop() }
func main() { // Need to lock the OS thread as OSX GUI requires GUI stuff to run in the main thread runtime.LockOSThread() log.AddFilter("file", log.FINEST, log.NewConsoleLogWriter()) defer func() { py.NewLock() py.Finalize() }() t = &qmlfrontend{windows: make(map[*backend.Window]*frontendWindow)} go t.qmlBatchLoop() qml.Run(t.loop) }