Exemplo n.º 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()
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 4
0
    def _check_for_latest_version(self, check=True):
        """
        checks the website for information regarding the latest gui version

        Looks for:
            ## pyNastran v0.7.2 has been Released (4/25/2015)
        """
        #import time
        #time0 = time.time()
        version_latest, unused_version_current, is_newer = check_for_newer_version()
        if is_newer and check:
            url = pyNastran.__website__
            win = DownloadWindow(url, version_latest, win_parent=self)
            win.show()