GOOD: allow setting 'Stretchy' as a global config
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
12167e419d
commit
955c823681
|
@ -11,6 +11,7 @@ import (
|
|||
import "git.wit.org/wit/gui"
|
||||
|
||||
func golangDebug(w *gui.Node) {
|
||||
gui.Config.Stretchy = false
|
||||
if (w == nil) {
|
||||
gui.Config.Title = "golangDebug Window"
|
||||
gui.Config.Width = 100
|
||||
|
|
|
@ -72,13 +72,17 @@ func resolvWindow(w *gui.Node) {
|
|||
bash("ping -c 3 2001:4860:4860::6464")
|
||||
})
|
||||
|
||||
gui.Config.Stretchy = true
|
||||
gNode.AddButton("set output", func (*gui.Node) {
|
||||
if (generaloutput != nil) {
|
||||
generaloutput.SetText("wow")
|
||||
generaloutput.SetMargined(false)
|
||||
}
|
||||
})
|
||||
gui.Config.Stretchy = false
|
||||
|
||||
gui.Config.Stretchy = true
|
||||
gNode = tab.AddGroup("Update")
|
||||
generaloutput = gNode.MakeGroupEdit("output")
|
||||
gui.Config.Stretchy = false
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue