IMG: add screenshots of 2 of the examples

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2021-08-08 20:28:12 -05:00
parent fee0c46ae6
commit 0fa2bc9084
7 changed files with 13 additions and 8 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
test1/test1
test2/test2
test3/test3
test4/test4
test5/test5

BIN
example-gui/capture.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

View File

@ -15,7 +15,7 @@ import "strings"
import "io/ioutil"
import "github.com/golang/protobuf/jsonpb"
import pb "git.wit.com/wit/witProtobuf"
import pb "git.wit.org/jcarr/witProtobuf"
import "github.com/davecgh/go-spew/spew"

View File

@ -6,7 +6,7 @@ import "os"
import "github.com/andlabs/ui"
import _ "github.com/andlabs/ui/winmanifest"
import "git.wit.com/wit/gui"
import "git.wit.org/wit/gui"
func TestAttributedString() *ui.AttributedString {
newText := ui.NewAttributedString("")

View File

@ -20,7 +20,7 @@ import "io/ioutil"
import "strings"
import "github.com/golang/protobuf/jsonpb"
import pb "git.wit.com/wit/witProtobuf"
import pb "git.wit.org/jcarr/witProtobuf"
import "github.com/davecgh/go-spew/spew"

View File

@ -8,9 +8,9 @@ import "time"
// this is the king of dns libraries
// import "github.com/miekg/dns"
import "git.wit.com/wit/gui"
import pb "git.wit.com/wit/witProtobuf"
// import "git.wit.com/jcarr/dnssecsocket"
import "git.wit.org/wit/gui"
import pb "git.wit.org/jcarr/witProtobuf"
// import "git.wit.org/jcarr/dnssecsocket"
import "github.com/gobuffalo/packr"
// import "github.com/davecgh/go-spew/spew"
@ -60,9 +60,9 @@ func main() {
log.Println("gui.Config.Debug = ", gui.Config.Debug)
log.Println("gui.Config.DebugTable = ", gui.Config.DebugTable)
go gui.StartNewWindow(false, "test4", showBox)
go gui.StartNewWindow(false, "test4", 1, showBox)
time.Sleep(time.Second * 2)
gui.StartNewWindow(false, "test5", showBox)
gui.StartNewWindow(false, "test5", 2, showBox)
}
func showBox(gw *gui.GuiWindow) *gui.GuiBox {