Example #1
0
 def _check_for_latest_version(self):
     version_latest, version_current, is_newer = check_for_newer_version()
     if is_newer:
         url = pyNastran.__website__
         from pyNastran.gui.menus.download import DownloadWindow
         win = DownloadWindow(url, version_latest, win_parent=self)
         win.show()
Example #2
0
 def _check_for_latest_version(self, check=True):
     import time
     t0 = time.time()
     version_latest, version_current, is_newer = check_for_newer_version()
     if is_newer:
         url = pyNastran.__website__
         from pyNastran.gui.menus.download import DownloadWindow
         win = DownloadWindow(url, version_latest, win_parent=self)
         win.show()
     dt = time.time() - t0
     print('dt = ', dt)
Example #3
0
 def _check_for_latest_version(self, check=True):
     import time
     t0 = time.time()
     version_latest, version_current, is_newer = check_for_newer_version()
     if is_newer:
         url = pyNastran.__website__
         from pyNastran.gui.menus.download import DownloadWindow
         win = DownloadWindow(url, version_latest, win_parent=self)
         win.show()
     dt = time.time() - t0
     print('dt = ', dt)
Example #4
0
# standard library
import sys
import os.path
#import traceback
#import webbrowser
#webbrowser.open("http://xkcd.com/353/")

from PyQt4 import QtCore, QtGui

import pyNastran
from pyNastran.gui.utils import check_for_newer_version


window = None
check_for_newer_version(window, pop_msg=True)

print("Using PyQt4")
fmode = 1
#except ImportError:
    #try:
        #from PySide import QtCore, QtGui
        #print("Using PySide")
        #fmode = 2
    #except ImportError:
        #msg = 'Failed to import PySide or PyQt4'
        #raise ImportError(msg)
assert fmode in [1, 2]

# 3rd party
import vtk