nanovna-saver/NanoVNASaver/__main__.py

42 wiersze
1.4 KiB
Python
Czysty Zwykły widok Historia

#! /bin/env python
2019-08-29 13:10:35 +00:00
# NanoVNASaver - a python program to view and export Touchstone data from a NanoVNA
# Copyright (C) 2019. Rune B. Broberg
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import sys
2019-08-28 13:43:02 +00:00
from PyQt5 import QtWidgets, QtCore
2019-08-27 14:00:56 +00:00
from .NanoVNASaver import NanoVNASaver
2019-08-28 12:18:56 +00:00
def main():
print("NanoVNASaver " + NanoVNASaver.version)
print("Copyright (C) 2019 Rune B. Broberg")
print("This program comes with ABSOLUTELY NO WARRANTY")
print("This program is licensed under the GNU General Public License version 3")
print("")
print("See https://github.com/mihtjel/nanovna-saver for further details")
2019-08-27 14:00:56 +00:00
# Main code goes here
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
app = QtWidgets.QApplication(sys.argv)
2019-08-27 14:00:56 +00:00
window = NanoVNASaver()
window.show()
app.exec_()
if __name__ == '__main__':
main()