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.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):
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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()
|
||||
|
|
Ładowanie…
Reference in New Issue