CLEAN: rename files
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
b9994acc49
commit
d0990d55f1
2
Makefile
2
Makefile
|
@ -24,9 +24,11 @@ build:
|
|||
cd example-ui-controlgallery; go install # an example GUI with drop down menus, etc
|
||||
cd example-ui-radiobutton; go install # slidebars, lists, radio buttons
|
||||
cd example-ui-table; go install # spreadsheet
|
||||
cd example-ui-show-hide; go install # toggle hide, show
|
||||
|
||||
# misc
|
||||
cd example-lookupAAAA; go install # nslookup
|
||||
cd example-json-decode; go install # raw golang byte handling
|
||||
|
||||
# golang things
|
||||
cd example-pprof; go install # dump out go process internals
|
||||
|
|
BIN
test1/main
BIN
test1/main
Binary file not shown.
|
@ -1,3 +0,0 @@
|
|||
run:
|
||||
go build
|
||||
./test3
|
|
@ -1,32 +0,0 @@
|
|||
package main
|
||||
|
||||
import "log"
|
||||
import "os"
|
||||
|
||||
import "github.com/andlabs/ui"
|
||||
import _ "github.com/andlabs/ui/winmanifest"
|
||||
|
||||
import "git.wit.org/wit/gui"
|
||||
|
||||
func TestAttributedString() *ui.AttributedString {
|
||||
newText := ui.NewAttributedString("")
|
||||
|
||||
gui.AreaAppendText(newText, "Welcome to the Cloud Control Panel\n", ui.TextSize(16), ui.TextColor{0.0, 0.0, 0.8, .8}) // "RGBT"
|
||||
return newText
|
||||
}
|
||||
|
||||
func main() {
|
||||
// THIS CRASHES IF YOU RUN IT HERE
|
||||
// text := TestAttributedString()
|
||||
// log.Println("text =", text)
|
||||
|
||||
ui.Main(setupUI)
|
||||
}
|
||||
|
||||
func setupUI() {
|
||||
// this doesn't crash here
|
||||
text := TestAttributedString()
|
||||
log.Println("text =", text)
|
||||
|
||||
os.Exit(0)
|
||||
}
|
Loading…
Reference in New Issue