|
|
@ -46,13 +46,13 @@ var ( |
|
|
|
window *widgets.QMainWindow |
|
|
|
window *widgets.QMainWindow |
|
|
|
mainApp *widgets.QApplication |
|
|
|
mainApp *widgets.QApplication |
|
|
|
vehicleSearch string |
|
|
|
vehicleSearch string |
|
|
|
refresh bool |
|
|
|
refresh int |
|
|
|
popup = false |
|
|
|
popup = false |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func init() { |
|
|
|
func init() { |
|
|
|
flag.StringVar(&vehicleSearch, "v", "", "Vehicle Identifier") |
|
|
|
flag.StringVar(&vehicleSearch, "v", "", "Vehicle Identifier") |
|
|
|
flag.BoolVar(&refresh, "r", false, "Auto-refresh (every minute)") |
|
|
|
flag.IntVar(&refresh, "r", -1, "Auto-refresh (every \"r\" minutes)") |
|
|
|
flag.Parse() |
|
|
|
flag.Parse() |
|
|
|
} |
|
|
|
} |
|
|
|
func main() { |
|
|
|
func main() { |
|
|
@ -118,9 +118,9 @@ func main() { |
|
|
|
|
|
|
|
|
|
|
|
// Set Values for everything
|
|
|
|
// Set Values for everything
|
|
|
|
setValues() |
|
|
|
setValues() |
|
|
|
if refresh { |
|
|
|
if refresh >= 1{ |
|
|
|
go func() { |
|
|
|
go func() { |
|
|
|
time.Sleep(1 * time.Minute) |
|
|
|
time.Sleep(time.Duration(refresh) * time.Minute) |
|
|
|
setValues() |
|
|
|
setValues() |
|
|
|
}() |
|
|
|
}() |
|
|
|
} |
|
|
|
} |
|
|
|