func (ui *UiLib) Connect(button qml.Object) { if !ui.connected { ui.eth.Start() ui.connected = true button.Set("enabled", false) } }
func (gui *Gui) createWindow(comp qml.Object) *qml.Window { gui.win = comp.CreateWindow(nil) gui.uiLib.win = gui.win return gui.win }