main.go 405 Bytes
Newer Older
1
2
package main

Loïck Bonniot's avatar
Loïck Bonniot committed
3
4
5
6
7
8
9
10
import (
	"dfss"
	"dfss/gui/userform"
	"github.com/visualfc/goqt/ui"
)

const WIDTH = 650
const HEIGHT = 350
11
12
13

func main() {
	ui.Run(func() {
Loïck Bonniot's avatar
Loïck Bonniot committed
14
		form := userform.NewWidget()
15

Loïck Bonniot's avatar
Loïck Bonniot committed
16
17
		layout := ui.NewVBoxLayout()
		layout.AddWidget(form.W)
18

Loïck Bonniot's avatar
Loïck Bonniot committed
19
20
21
22
23
		w := ui.NewWidget()
		w.SetLayout(layout)
		w.SetWindowTitle("DFSS Client v" + dfss.Version)
		w.SetFixedSizeWithWidthHeight(WIDTH, HEIGHT)
		w.Show()
24
25
	})
}