Fixed high-DPI screen scaling

Removed debug messages for QualityFactor chart
pull/12/head
Rune B. Broberg 2019-09-10 23:20:59 +02:00
rodzic 60616508a7
commit 27191800bd
3 zmienionych plików z 2 dodań i 7 usunięć

Wyświetl plik

@ -965,11 +965,6 @@ class QualityFactorChart(Chart):
self.minQ = math.floor(minQ/10**scale) * 10**scale
self.span = self.maxQ - self.minQ
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:
return # No data to draw the graph from
for i in range(self.minQ, self.maxQ, step):

Wyświetl plik

@ -41,7 +41,6 @@ class NanoVNASaver(QtWidgets.QWidget):
def __init__(self):
super().__init__()
self.settings = QtCore.QSettings(QtCore.QSettings.IniFormat,
QtCore.QSettings.UserScope,
"NanoVNASaver", "NanoVNASaver")

Wyświetl plik

@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# 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
@ -29,6 +29,7 @@ def main():
print("")
print("See https://github.com/mihtjel/nanovna-saver for further details")
# Main code goes here
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
app = QtWidgets.QApplication([])
window = NanoVNASaver()
window.show()