diff options
| author | Jeff Carr <[email protected]> | 2023-12-20 17:28:00 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-20 17:28:00 -0600 |
| commit | 48dfdf322b2cf379d8deeff678747907b604637f (patch) | |
| tree | f813fc169ac1eb050c39533cc9612c74c9caebd7 /toolkit/andlabs-direct/spinner.go | |
| parent | dd6d1a639b86ab12a2bf537b8588dd5ae60cdad7 (diff) | |
remove direct code since it probably doesn't work
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs-direct/spinner.go')
| -rw-r--r-- | toolkit/andlabs-direct/spinner.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/toolkit/andlabs-direct/spinner.go b/toolkit/andlabs-direct/spinner.go deleted file mode 100644 index 885192c..0000000 --- a/toolkit/andlabs-direct/spinner.go +++ /dev/null @@ -1,30 +0,0 @@ -package toolkit - -import "log" -import "os" - -import "github.com/andlabs/ui" -import _ "github.com/andlabs/ui/winmanifest" - -func (t Toolkit) NewSpinner(title string, x int, y int) *Toolkit { - // make new node here - log.Println("gui.Toolkit.NewSpinner()", x, y) - var newt Toolkit - - if (t.uiBox == nil) { - log.Println("gui.ToolkitNode.NewSpinner() node.UiBox == nil. I can't add a range UI element without a place to put it") - os.Exit(0) - return nil - } - - s := ui.NewSpinbox(x, y) - newt.uiSpinbox = s - newt.uiBox = t.uiBox - t.uiBox.Append(s, stretchy) - - s.OnChanged(func(s *ui.Spinbox) { - newt.commonChange("Spinner") - }) - - return &newt -} |
