diff options
| author | Jeff Carr <[email protected]> | 2023-04-08 15:34:36 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-08 15:34:36 -0500 |
| commit | b24cc5898604191df7bfc2cacd7bc5043fa14a42 (patch) | |
| tree | 31c011056e67b103ef62c33434ff04fe345a3571 /common.go | |
| parent | 0e0787c0620c0dca59378d1e3b355c60a1a82de1 (diff) | |
gocui: compiling and running again
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 19 |
1 files changed, 1 insertions, 18 deletions
@@ -9,18 +9,6 @@ import ( // functions for handling text related GUI elements -func New() *Node { - if (Config.rootNode == nil) { - log(logError, "New() ERROR: rootNode is nil") - } - - // There should only be one of these per application - // This is due to restrictions by being cross platform - // some toolkit's on some operating systems don't support more than one - // Keep things simple. Do the default expected thing whenever possible - return startS("gocui") -} - func (n *Node) Show() *Node { var a toolkit.Action a.ActionType = toolkit.Show @@ -204,14 +192,9 @@ func (n *Node) Unpad() *Node { // me.window = myGui.New2().Window("DNS and IPv6 Control Panel").Standard() // myFunnyWindow = myGui.NewWindow("Hello").Standard().SetText("Hola") -func (n *Node) New2() *Node { - log(debugNow, "New2() Start") - return n.NewWindow2("New2") -} - func (n *Node) Window(title string) *Node { log(debugError, "Window()", n) - return n.NewWindow2(title) + return n.NewWindow(title) } // This should not really do anything. as per the docs, the "Standard()" way |
