kopia lustrzana https://github.com/projecthorus/horus-gui
Change raw/decoded fields to LineEdit boxes
rodzic
dfce466555
commit
f5f07e6448
|
@ -0,0 +1,37 @@
|
|||
# -*- mode: python ; coding: utf-8 -*-
|
||||
|
||||
block_cipher = None
|
||||
|
||||
|
||||
a = Analysis(['horus-gui.py'],
|
||||
pathex=['.'],
|
||||
binaries=[],
|
||||
datas=[],
|
||||
hiddenimports=[],
|
||||
hookspath=[],
|
||||
runtime_hooks=[],
|
||||
excludes=[],
|
||||
win_no_prefer_redirects=False,
|
||||
win_private_assemblies=False,
|
||||
cipher=block_cipher,
|
||||
noarchive=False)
|
||||
pyz = PYZ(a.pure, a.zipped_data,
|
||||
cipher=block_cipher)
|
||||
exe = EXE(pyz,
|
||||
a.scripts,
|
||||
[],
|
||||
exclude_binaries=True,
|
||||
name='startup',
|
||||
debug=False,
|
||||
bootloader_ignore_signals=False,
|
||||
strip=False,
|
||||
upx=True,
|
||||
console=True )
|
||||
coll = COLLECT(exe,
|
||||
a.binaries,
|
||||
a.zipfiles,
|
||||
a.datas,
|
||||
strip=False,
|
||||
upx=True,
|
||||
upx_exclude=[],
|
||||
name='horus-gui')
|
|
@ -1 +1 @@
|
|||
__version__ = "0.1.1"
|
||||
__version__ = "0.1.2"
|
||||
|
|
|
@ -278,13 +278,15 @@ d2_snr.addWidget(w3_snr)
|
|||
# Telemetry Data
|
||||
w4_data = pg.LayoutWidget()
|
||||
widgets["latestRawSentenceLabel"] = QtGui.QLabel("<b>Latest Packet (Raw):</b>")
|
||||
widgets["latestRawSentenceData"] = QtGui.QLabel("NO DATA")
|
||||
widgets["latestRawSentenceData"].setFont(QtGui.QFont("Courier New", 18, QtGui.QFont.Bold))
|
||||
widgets["latestRawSentenceData"].setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse)
|
||||
widgets["latestRawSentenceData"] = QtGui.QLineEdit("NO DATA")
|
||||
widgets["latestRawSentenceData"].setReadOnly(True)
|
||||
#widgets["latestRawSentenceData"].setFont(QtGui.QFont("Courier New", 18, QtGui.QFont.Bold))
|
||||
#widgets["latestRawSentenceData"].setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse)
|
||||
widgets["latestDecodedSentenceLabel"] = QtGui.QLabel("<b>Latest Packet (Decoded):</b>")
|
||||
widgets["latestDecodedSentenceData"] = QtGui.QLabel("NO DATA")
|
||||
widgets["latestDecodedSentenceData"].setFont(QtGui.QFont("Courier New", 18, QtGui.QFont.Bold))
|
||||
widgets["latestDecodedSentenceData"].setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse)
|
||||
widgets["latestDecodedSentenceData"] = QtGui.QLineEdit("NO DATA")
|
||||
widgets["latestDecodedSentenceData"].setReadOnly(True)
|
||||
#widgets["latestDecodedSentenceData"].setFont(QtGui.QFont("Courier New", 18, QtGui.QFont.Bold))
|
||||
#widgets["latestDecodedSentenceData"].setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse)
|
||||
w4_data.addWidget(widgets["latestRawSentenceLabel"], 0, 0, 1, 1)
|
||||
w4_data.addWidget(widgets["latestRawSentenceData"], 0, 1, 1, 6)
|
||||
w4_data.addWidget(widgets["latestDecodedSentenceLabel"], 1, 0, 1, 1)
|
||||
|
@ -292,30 +294,31 @@ w4_data.addWidget(widgets["latestDecodedSentenceData"], 1, 1, 1, 6)
|
|||
d3_data.addWidget(w4_data)
|
||||
|
||||
w4_position = pg.LayoutWidget()
|
||||
POSITION_LABEL_FONT_SIZE = 16
|
||||
widgets["latestPacketCallsignLabel"] = QtGui.QLabel("<b>Callsign</b>")
|
||||
widgets["latestPacketCallsignValue"] = QtGui.QLabel("---")
|
||||
widgets["latestPacketCallsignValue"].setFont(QtGui.QFont("Courier New", 16, QtGui.QFont.Bold))
|
||||
widgets["latestPacketCallsignValue"].setFont(QtGui.QFont("Courier New", POSITION_LABEL_FONT_SIZE, QtGui.QFont.Bold))
|
||||
widgets["latestPacketTimeLabel"] = QtGui.QLabel("<b>Time</b>")
|
||||
widgets["latestPacketTimeValue"] = QtGui.QLabel("---")
|
||||
widgets["latestPacketTimeValue"].setFont(QtGui.QFont("Courier New", 16, QtGui.QFont.Bold))
|
||||
widgets["latestPacketTimeValue"].setFont(QtGui.QFont("Courier New", POSITION_LABEL_FONT_SIZE, QtGui.QFont.Bold))
|
||||
widgets["latestPacketLatitudeLabel"] = QtGui.QLabel("<b>Latitude</b>")
|
||||
widgets["latestPacketLatitudeValue"] = QtGui.QLabel("---")
|
||||
widgets["latestPacketLatitudeValue"].setFont(QtGui.QFont("Courier New", 16, QtGui.QFont.Bold))
|
||||
widgets["latestPacketLatitudeValue"].setFont(QtGui.QFont("Courier New", POSITION_LABEL_FONT_SIZE, QtGui.QFont.Bold))
|
||||
widgets["latestPacketLongitudeLabel"] = QtGui.QLabel("<b>Longitude</b>")
|
||||
widgets["latestPacketLongitudeValue"] = QtGui.QLabel("---")
|
||||
widgets["latestPacketLongitudeValue"].setFont(QtGui.QFont("Courier New", 16, QtGui.QFont.Bold))
|
||||
widgets["latestPacketLongitudeValue"].setFont(QtGui.QFont("Courier New", POSITION_LABEL_FONT_SIZE, QtGui.QFont.Bold))
|
||||
widgets["latestPacketAltitudeLabel"] = QtGui.QLabel("<b>Altitude</b>")
|
||||
widgets["latestPacketAltitudeValue"] = QtGui.QLabel("---")
|
||||
widgets["latestPacketAltitudeValue"].setFont(QtGui.QFont("Courier New", 16, QtGui.QFont.Bold))
|
||||
widgets["latestPacketAltitudeValue"].setFont(QtGui.QFont("Courier New", POSITION_LABEL_FONT_SIZE, QtGui.QFont.Bold))
|
||||
widgets["latestPacketBearingLabel"] = QtGui.QLabel("<b>Bearing</b>")
|
||||
widgets["latestPacketBearingValue"] = QtGui.QLabel("---")
|
||||
widgets["latestPacketBearingValue"].setFont(QtGui.QFont("Courier New", 16, QtGui.QFont.Bold))
|
||||
widgets["latestPacketBearingValue"].setFont(QtGui.QFont("Courier New", POSITION_LABEL_FONT_SIZE, QtGui.QFont.Bold))
|
||||
widgets["latestPacketElevationLabel"] = QtGui.QLabel("<b>Elevation</b>")
|
||||
widgets["latestPacketElevationValue"] = QtGui.QLabel("---")
|
||||
widgets["latestPacketElevationValue"].setFont(QtGui.QFont("Courier New", 16, QtGui.QFont.Bold))
|
||||
widgets["latestPacketElevationValue"].setFont(QtGui.QFont("Courier New", POSITION_LABEL_FONT_SIZE, QtGui.QFont.Bold))
|
||||
widgets["latestPacketRangeLabel"] = QtGui.QLabel("<b>Range (km)</b>")
|
||||
widgets["latestPacketRangeValue"] = QtGui.QLabel("---")
|
||||
widgets["latestPacketRangeValue"].setFont(QtGui.QFont("Courier New", 16, QtGui.QFont.Bold))
|
||||
widgets["latestPacketRangeValue"].setFont(QtGui.QFont("Courier New", POSITION_LABEL_FONT_SIZE, QtGui.QFont.Bold))
|
||||
|
||||
w4_position.addWidget(widgets["latestPacketCallsignLabel"], 0, 0, 1, 2)
|
||||
w4_position.addWidget(widgets["latestPacketCallsignValue"], 1, 0, 1, 2)
|
||||
|
@ -686,7 +689,6 @@ def processQueues():
|
|||
# Once initialised, enable the start button
|
||||
widgets["startDecodeButton"].setEnabled(True)
|
||||
|
||||
|
||||
gui_update_timer = QtCore.QTimer()
|
||||
gui_update_timer.timeout.connect(processQueues)
|
||||
gui_update_timer.start(100)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "horusgui"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
description = ""
|
||||
authors = ["Mark Jessop <vk5qi@rfhead.net>"]
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue