Skip to content

Commit

Permalink
Fixed some of the full_gui syntax issues with Pyside2
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Blumberg committed Sep 12, 2019
1 parent 61a09b3 commit b2bcb27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runsharp/full_gui.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from qtpy.QtGui import *
from qtpy.QtCore import *
from qtpy.QtWidgets import *
import qtpy
QApplication.setAttribute(Qt.AA_EnableHighDpiScaling)
QApplication.setAttribute(Qt.AA_UseHighDpiPixmaps)
#QApplication.setAttribute(Qt.AA_UseHighDpiPixmaps, True)
Expand Down Expand Up @@ -86,7 +87,7 @@
logging.info('numpy version: ' + str(np.__version__))
logging.info('qtpy version: ' + str(qtpy.__version__))
logging.info("Python version: " + str(platform.python_version()))
logging.info("Qt version: " + str(PySide.QtCore.__version__))
logging.info("Qt version: " + str(qtpy.QtCore.__version__))

# from sharppy._version import __version__#, __version_name__

Expand All @@ -103,10 +104,9 @@ def versioning_info(include_sharppy=False):
txt = ""
if include_sharppy is True:
txt += "SHARPpy version: " + str(__version__) + '\n'
txt += "PySide version: " + str(PySide.__version__) + '\n'
txt += "Numpy version: " + str(np.__version__) + '\n'
txt += "Python version: " + str(platform.python_version()) + '\n'
txt += "Qt version: " + str(PySide.QtCore.__version__)
txt += "PySide/Qt version: " + str(qtpy.QtCore.__version__)
return txt

class crasher(object):
Expand Down Expand Up @@ -1179,12 +1179,12 @@ def main():
#app.setAttribute(Qt.AA_UseHighDpiPixmaps)
#
#app.setStyle("fusion")
win = createWindow(args.file_names, collect=args.collect, close=args.close)
if QApplication.instance() is None:
app = QApplication([])
else:
app = QApplication.instance()

#win = createWindow(args.file_names, collect=args.collect, close=False)
# Check to see if there's a newer version of SHARPpy on Github Releases
latest = check_latest()

Expand Down

0 comments on commit b2bcb27

Please sign in to comment.