From 0d405b91d1392cbfc8ba513cbee1a397d67bc910 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 12 May 2019 21:00:55 -0700 Subject: [PATCH] very first time data is flowing through correctly to the GUI Signed-off-by: Jeff Carr --- eventChannel.go | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/eventChannel.go b/eventChannel.go index 9f8c872..2b4716b 100644 --- a/eventChannel.go +++ b/eventChannel.go @@ -52,17 +52,24 @@ func ReadReceivedData(data *pb.Event, mh *gui.TableData) { vms := data.GetVms() log.Println("ReadReceivedData() Event vms=", vms) - row := 0 - for _, item := range vms { - mh.Rows[row].Cells[3].Raw = item.Name + for row, item := range vms { + mh.Rows[row].Human[2].Text = ui.TableString(item.Name) + + log.Println("\titem.Name=", item.Name) + log.Println("\tRows[row]=", mh.Rows[row]) + log.Println("\tRows[row]=", row) + log.Println("\tRows[row].Name=", mh.Rows[row].Name) log.Println(item) row += 1 } +/* log.Println("ReadReceivedData() mh rows") for row := 0; row < mh.RowCount; row++ { log.Println("\trow=", row) + log.Println("\tRows[row]=", mh.Rows[row]) } +*/ } func addSampleEvent() {