package ppf import ( "fyne.io/fyne/v2" "fyne.io/fyne/v2/app" "fyne.io/fyne/v2/container" "fyne.io/fyne/v2/widget" ) func Appmain() { a := app.New() w := a.NewWindow("ProtocolPacketForger") w.Resize(fyne.NewSize(800, 600)) hello := widget.NewLabel("Hello Fyne!") w.SetContent(container.NewBorder( hello, nil, nil, nil, container.NewVScroll(GetProtocolEditor().Representation), // widget.NewButton("Hi!", func() { // hello.SetText("Welcome :)") // }), )) w.ShowAndRun() } type ppfApp struct { Toolbar *fyne.Container Metadata *fyne.Container Extensions *fyne.Container ContextBar *fyne.Container Workarea *fyne.Container Settings map[string]string ProtocolForging bool } var application ppfApp func CreateApp() *fyne.Container { return container.NewBorder( application.Toolbar, application.Metadata, application.ContextBar, application.Extensions, container.NewVScroll(application.Workarea), ) } func CreateToolbar() *fyne.Container { return nil }