|
|
@ -117,15 +117,14 @@ func main() { |
|
|
|
centralWidget := widgets.NewQWidget(window, 0) |
|
|
|
centralWidget := widgets.NewQWidget(window, 0) |
|
|
|
|
|
|
|
|
|
|
|
// Set Values for everything
|
|
|
|
// Set Values for everything
|
|
|
|
|
|
|
|
setValues() |
|
|
|
if refresh >= 1 { |
|
|
|
if refresh >= 1 { |
|
|
|
go func() { |
|
|
|
go func() { |
|
|
|
for { |
|
|
|
for { |
|
|
|
setValues() |
|
|
|
|
|
|
|
time.Sleep(time.Duration(refresh) * time.Minute) |
|
|
|
time.Sleep(time.Duration(refresh) * time.Minute) |
|
|
|
|
|
|
|
setValues() |
|
|
|
} |
|
|
|
} |
|
|
|
}() |
|
|
|
}() |
|
|
|
} else { |
|
|
|
|
|
|
|
setValues() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Some adjustments
|
|
|
|
// Some adjustments
|
|
|
|