kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
Fixed high-DPI screen scaling
Removed debug messages for QualityFactor chartpull/12/head
rodzic
60616508a7
commit
27191800bd
|
@ -965,11 +965,6 @@ class QualityFactorChart(Chart):
|
||||||
self.minQ = math.floor(minQ/10**scale) * 10**scale
|
self.minQ = math.floor(minQ/10**scale) * 10**scale
|
||||||
self.span = self.maxQ - self.minQ
|
self.span = self.maxQ - self.minQ
|
||||||
step = math.floor(self.span / 10)
|
step = math.floor(self.span / 10)
|
||||||
print("Scale: " + str(scale))
|
|
||||||
print("MaxQ: " + str(self.maxQ))
|
|
||||||
print("MinQ: " + str(self.minQ))
|
|
||||||
print("Span: " + str(self.span))
|
|
||||||
print("Step: " + str(step))
|
|
||||||
if step == 0:
|
if step == 0:
|
||||||
return # No data to draw the graph from
|
return # No data to draw the graph from
|
||||||
for i in range(self.minQ, self.maxQ, step):
|
for i in range(self.minQ, self.maxQ, step):
|
||||||
|
|
|
@ -41,7 +41,6 @@ class NanoVNASaver(QtWidgets.QWidget):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
self.settings = QtCore.QSettings(QtCore.QSettings.IniFormat,
|
self.settings = QtCore.QSettings(QtCore.QSettings.IniFormat,
|
||||||
QtCore.QSettings.UserScope,
|
QtCore.QSettings.UserScope,
|
||||||
"NanoVNASaver", "NanoVNASaver")
|
"NanoVNASaver", "NanoVNASaver")
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from PyQt5 import QtWidgets
|
from PyQt5 import QtWidgets, QtCore
|
||||||
|
|
||||||
from .NanoVNASaver import NanoVNASaver
|
from .NanoVNASaver import NanoVNASaver
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ def main():
|
||||||
print("")
|
print("")
|
||||||
print("See https://github.com/mihtjel/nanovna-saver for further details")
|
print("See https://github.com/mihtjel/nanovna-saver for further details")
|
||||||
# Main code goes here
|
# Main code goes here
|
||||||
|
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
|
||||||
app = QtWidgets.QApplication([])
|
app = QtWidgets.QApplication([])
|
||||||
window = NanoVNASaver()
|
window = NanoVNASaver()
|
||||||
window.show()
|
window.show()
|
||||||
|
|
Ładowanie…
Reference in New Issue