export two functions
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
188a1de0b5
commit
3fa08bed15
9
gui.go
9
gui.go
|
@ -1,4 +1,4 @@
|
||||||
package main
|
package gui
|
||||||
|
|
||||||
import "log"
|
import "log"
|
||||||
// import "fmt"
|
// import "fmt"
|
||||||
|
@ -239,7 +239,7 @@ func setupUI() {
|
||||||
mainwin.Show()
|
mainwin.Show()
|
||||||
}
|
}
|
||||||
|
|
||||||
func addTableTab(name string, rowcount int, row1name string) {
|
func AddTableTab(name string, rowcount int, row1name string) {
|
||||||
mh := new(tableData)
|
mh := new(tableData)
|
||||||
|
|
||||||
mh.rowcount = rowcount
|
mh.rowcount = rowcount
|
||||||
|
@ -277,10 +277,11 @@ func addTableTab(name string, rowcount int, row1name string) {
|
||||||
maintab.SetMargined(tabcount, true)
|
maintab.SetMargined(tabcount, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
func doGUI() {
|
func DoGUI() {
|
||||||
ui.Main(setupUI)
|
ui.Main(setupUI)
|
||||||
|
|
||||||
log.Println("GUI exited. Not sure what to do here. os.Exit() ?")
|
log.Println("GUI exited. Not sure what to do here. os.Exit() ?")
|
||||||
|
|
||||||
onExit()
|
// not sure how to pass this back to the main program
|
||||||
|
// onExit()
|
||||||
}
|
}
|
||||||
|
|
2
table.go
2
table.go
|
@ -1,6 +1,6 @@
|
||||||
// based off andlabs/ui/examples/table.go
|
// based off andlabs/ui/examples/table.go
|
||||||
|
|
||||||
package main
|
package gui
|
||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
import "log"
|
import "log"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package main
|
package gui
|
||||||
|
|
||||||
//
|
//
|
||||||
// These functions are the hooks to the andlabs libui
|
// These functions are the hooks to the andlabs libui
|
||||||
|
|
Loading…
Reference in New Issue