diff options
| author | Jeff Carr <[email protected]> | 2019-05-15 11:03:42 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-15 11:03:42 -0700 |
| commit | 6a9ff162d9230c4ef32498518cb384e3fc1820c9 (patch) | |
| tree | 6e6a3048123e597a979fbdd2f7a3ee402588dd2e /vmWindow.go | |
| parent | 20a71cca67b8eabd8716728b89e5c109e33d12cf (diff) | |
start working on a VM window
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'vmWindow.go')
| -rw-r--r-- | vmWindow.go | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/vmWindow.go b/vmWindow.go new file mode 100644 index 0000000..2d62545 --- /dev/null +++ b/vmWindow.go @@ -0,0 +1,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() +} |
