ppforge/internal/app/app.go

26 lines
413 B
Go

package app
import (
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"gitea.mmo.to/ppForge/ppforge/internal/ui"
)
var fyneApp fyne.App
var w fyne.Window
func Appmain() {
fyneApp = app.New()
w = fyneApp.NewWindow("ProtocolPacketForger")
w.Resize(fyne.NewSize(1024, 768))
w.SetContent(CreateApp())
w.ShowAndRun()
}
func CreateApp() *fyne.Container {
ppf := ui.NewPPF(fyneApp, w)
return ppf.GetContainer()
}