try to delete and replace the ui.Tab(0)

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-22 17:53:50 -07:00
parent f98164e2fc
commit 32990af0fd
3 changed files with 20 additions and 1 deletions

View File

@ -8,6 +8,16 @@ Obviously I'm developing this app on Linux so if things are
broken in the MacOS or Windows, check the Linux version if
possible to see if it is also broken there.
# IMPORTANT NOTES
To use the cross platform UI, all GUI interactions must be
done from within the same goroutine for it to work properly
on Windows. This is an annoying limitation of how Windows works
(or so it appears. maybe someone will figure out how to fix that)
This means the Windows version of this GUI will probably always
be sub-par verses the Linux and Macintosh versions
# build
```

View File

@ -1,2 +1,6 @@
build:
go build
./example-systray
run:
go run *.go

View File

@ -40,8 +40,13 @@ func main() {
func buttonClick(i int, s string) {
log.Println("test2 buttonClick() i, s =", i, s)
cloudTab.Delete(0)
log.Println("Sleep(2000)")
time.Sleep(2000 * time.Millisecond)
smallBox = account1.AddAccountBox(nil, splashClose)
cloudTab.InsertAt("Intro", 1, smallBox)
cloudTab.InsertAt("Intro", 0, smallBox)
cloudTab.SetMargined(0, true)
}