ppforge/internal/app/app.go

26 lines
422 B
Go
Raw Normal View History

package app
2022-11-23 20:33:07 +01:00
import (
2022-11-24 21:49:10 +01:00
"fyne.io/fyne/v2"
2022-11-23 20:33:07 +01:00
"fyne.io/fyne/v2/app"
"gitea.mmo.to/ProtocolPacketForger/ppf/internal/ui"
2022-11-23 20:33:07 +01:00
)
var fyneApp fyne.App
var w fyne.Window
2022-11-23 20:33:07 +01:00
func Appmain() {
fyneApp = app.New()
w = fyneApp.NewWindow("ProtocolPacketForger")
w.Resize(fyne.NewSize(1024, 768))
2022-11-23 20:33:07 +01:00
w.SetContent(CreateApp())
2022-11-23 20:33:07 +01:00
w.ShowAndRun()
}
2022-11-25 11:36:29 +01:00
func CreateApp() *fyne.Container {
2023-01-05 14:16:41 +01:00
ppf := ui.NewPPF(fyneApp, w)
return ppf.GetContainer()
2022-11-25 11:36:29 +01:00
}