blob: 2d625456d0adae95b0f922d5c6f28b2f15133ba1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package gui
import "log"
import "github.com/andlabs/ui"
import _ "github.com/andlabs/ui/winmanifest"
func ShowVM() {
name := CurrentVM
log.Println("setupDemoUI() START CurrentVM=", CurrentVM)
VMwin := ui.NewWindow("VM " + name, 500, 300, false)
VMwin.OnClosing(func(*ui.Window) bool {
return true
})
ui.OnShouldQuit(func() bool {
VMwin.Destroy()
VMwin = nil
return true
})
VMtab := ui.NewTab()
VMwin.SetChild(VMtab)
VMwin.SetMargined(true)
// VMtab.Append("List examples", makeNumbersPage())
// VMtab.SetMargined(0, true)
VMwin.Show()
}
|