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