summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-08 13:09:17 -0700
committerJeff Carr <[email protected]>2019-05-08 13:09:17 -0700
commit3fa08bed151d174e3cf699abd7e39e8709a8d4e1 (patch)
tree704a291330ea19d73d2df608fb4b1b1ad0651f08 /gui.go
parent188a1de0b5632ec928267d4e687eee9448df59e8 (diff)
export two functions
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/gui.go b/gui.go
index 71ef399..816464b 100644
--- a/gui.go
+++ b/gui.go
@@ -1,4 +1,4 @@
-package main
+package gui
import "log"
// import "fmt"
@@ -239,7 +239,7 @@ func setupUI() {
mainwin.Show()
}
-func addTableTab(name string, rowcount int, row1name string) {
+func AddTableTab(name string, rowcount int, row1name string) {
mh := new(tableData)
mh.rowcount = rowcount
@@ -277,10 +277,11 @@ func addTableTab(name string, rowcount int, row1name string) {
maintab.SetMargined(tabcount, true)
}
-func doGUI() {
+func DoGUI() {
ui.Main(setupUI)
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()
}