main.go 500 Bytes
Newer Older
1
2
package main

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

const WIDTH = 650
const HEIGHT = 350
12
13

func main() {
14
15
16
17
18

	// Load configuration
	conf := config.Load()

	// Start first window
19
	ui.Run(func() {
20
		form := userform.NewWidget(&conf)
21

Loïck Bonniot's avatar
Loïck Bonniot committed
22
23
		layout := ui.NewVBoxLayout()
		layout.AddWidget(form.W)
24

Loïck Bonniot's avatar
Loïck Bonniot committed
25
26
27
28
29
		w := ui.NewWidget()
		w.SetLayout(layout)
		w.SetWindowTitle("DFSS Client v" + dfss.Version)
		w.SetFixedSizeWithWidthHeight(WIDTH, HEIGHT)
		w.Show()
30
31
	})
}