Renamed and tweaked
This commit is contained in:
@ -203,7 +203,7 @@ class Ui_MainWindow(object):
|
||||
# setupUi
|
||||
|
||||
def retranslateUi(self, MainWindow):
|
||||
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"NTCNA GPS Virtual Cones V1.0", None))
|
||||
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"GPS Virtual Cones", None))
|
||||
self.label_2.setText(QCoreApplication.translate("MainWindow", u"Longitude:", None))
|
||||
self.label.setText(QCoreApplication.translate("MainWindow", u"Latitude:", None))
|
||||
self.label_3.setText(QCoreApplication.translate("MainWindow", u"Speed:", None))
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>NTCNA GPS Virtual Cones V1.0</string>
|
||||
<string>GPS Virtual Cones</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<widget class="QLabel" name="label_2">
|
||||
|
||||
@ -16,15 +16,9 @@ from sys import platform
|
||||
# audio stuff
|
||||
##############################################################################
|
||||
|
||||
sound_args = ""
|
||||
|
||||
def play_sound(file):
|
||||
if platform == "win32" or platform == "win64" or platform == "cygwin":
|
||||
cmd = "wmplayer " + '"' + file + '"'
|
||||
else:
|
||||
cmd = "aplay -N " + sound_args + " " + file + " &"
|
||||
# print(cmd)
|
||||
os.system(cmd)
|
||||
wave_obj = sa.WaveObject.from_wave_file(file)
|
||||
play_obj = wave_obj.play()
|
||||
|
||||
##############################################################################
|
||||
# buzzer stuff
|
||||
@ -7,6 +7,7 @@ from math import *
|
||||
from gps import *
|
||||
from datetime import datetime
|
||||
from time import time, strftime
|
||||
import simpleaudio as sa
|
||||
|
||||
import gpxpy
|
||||
import csv
|
||||
@ -22,15 +23,9 @@ from MainWindow import Ui_MainWindow
|
||||
# audio stuff
|
||||
##############################################################################
|
||||
|
||||
sound_args = ""
|
||||
|
||||
def play_sound(file):
|
||||
if platform == "win32" or platform == "win64" or platform == "cygwin":
|
||||
cmd = "wmplayer " + '"' + file + '"'
|
||||
else:
|
||||
cmd = "aplay -N " + sound_args + " " + file + " &"
|
||||
# print(cmd)
|
||||
system(cmd)
|
||||
wave_obj = sa.WaveObject.from_wave_file(file)
|
||||
play_obj = wave_obj.play()
|
||||
|
||||
##############################################################################
|
||||
# gps stuff
|
||||
@ -215,7 +210,7 @@ class ConesWindow(MainWindow):
|
||||
def __init__(self, *args, obj=None, **kwargs):
|
||||
super(ConesWindow, self).__init__(*args, **kwargs)
|
||||
|
||||
self.setWindowTitle("NTCNA GPS Virtual Cones V1.6")
|
||||
self.setWindowTitle("NTCNA GPS Virtual Cones V2.0")
|
||||
|
||||
self.vlist1 = VirtualCones()
|
||||
self.vlist2 = VirtualCones()
|
||||
Reference in New Issue
Block a user