2025-03-04 01:57:59 -06:00
|
|
|
# fyne
|
2024-02-27 02:21:00 -06:00
|
|
|
|
|
|
|
Package gui implements a abstraction layer for Go visual elements.
|
|
|
|
|
|
|
|
This is a sample plugin. It's a skeleton intended to be used when making a new toolkit plugin.
|
2025-03-04 01:57:59 -06:00
|
|
|
|
|
|
|
fyne appears to require:
|
|
|
|
runtime.LockOSThread() // Ensure main stays on one OS thread
|
|
|
|
a := app.New()
|
|
|
|
w := a.NewWindow("Fyne Plugin Fix")
|
|
|
|
w.ShowAndRun()
|
|
|
|
|
|
|
|
error:
|
|
|
|
gui doing TestDraw() Forge: (this kinda works sometimes)
|
|
|
|
panic: Run() or ShowAndRun() must be called from main goroutine
|
|
|
|
|
|
|
|
so for fyne to work, there must be a protocol buffer GO GUI plugin first that
|
|
|
|
can spawn and talk to fyne
|