diff options
| author | Jeff Carr <[email protected]> | 2019-05-15 11:03:42 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-15 11:03:42 -0700 |
| commit | 6a9ff162d9230c4ef32498518cb384e3fc1820c9 (patch) | |
| tree | 6e6a3048123e597a979fbdd2f7a3ee402588dd2e /tableCallbacks.go | |
| parent | 20a71cca67b8eabd8716728b89e5c109e33d12cf (diff) | |
start working on a VM window
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'tableCallbacks.go')
| -rw-r--r-- | tableCallbacks.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tableCallbacks.go b/tableCallbacks.go index b1655da..94d174a 100644 --- a/tableCallbacks.go +++ b/tableCallbacks.go @@ -7,10 +7,13 @@ package gui // import "log" +import "fmt" import "github.com/andlabs/ui" import _ "github.com/andlabs/ui/winmanifest" +var CurrentVM string + func (mh *TableData) NumRows(m *ui.TableModel) int { return mh.RowCount } @@ -58,6 +61,12 @@ func (mh *TableData) SetCellValue(m *ui.TableModel, row, column int, value ui.Ta func defaultSetCellValue(mh *TableData, row int, column int) { if (mh.Cells[column].Name == "BUTTON") { + humanID := mh.Cells[column].HumanID + vmname := mh.Rows[row].HumanData[humanID].Text + log.Println("vmname =", vmname) log.Println("defaultSetCellValue() FOUND THE BUTTON!!!!!!! Button was pressed START", row, column) + CurrentVM = fmt.Sprintf("%s",vmname) + log.Println("CurrentVM =", CurrentVM) + go ui.Main(ShowVM) } } |
