@@ -852,6 +852,21 @@ def is_etabs_running(self, etabs=None):
852
852
return False
853
853
return True
854
854
855
+ def git_updates (self ):
856
+ from functions import update , progressbar
857
+ if not update .internet ():
858
+ msg = "You are not connected to the Internet, please check your internet connection."
859
+ QMessageBox .warning (None , 'update' , str (msg ))
860
+ return
861
+ if (QMessageBox .question (None , "update" , ("update to latest version?!" ),
862
+ QMessageBox .Yes | QMessageBox .No ) == QMessageBox .No ):
863
+ return
864
+ update_win = progressbar .UpdateWindow ()
865
+ self .hsplitter .insertWidget (0 , update_win )
866
+ up = update .GitUpdate (branch )
867
+ msg = up .git_update ()
868
+ update_win .label .setText (msg )
869
+
855
870
def run_section ():
856
871
import subprocess
857
872
python_exe = 'pythonw'
@@ -890,21 +905,6 @@ def help():
890
905
path = civiltools_path / "help" / "help.pdf"
891
906
webbrowser .open_new (str (path ))
892
907
893
- def git_updates ():
894
- from functions import update , progressbar
895
- if not update .internet ():
896
- msg = "You are not connected to the Internet, please check your internet connection."
897
- QMessageBox .warning (None , 'update' , str (msg ))
898
- return
899
- if (QMessageBox .question (None , "update" , ("update to latest version?!" ),
900
- QMessageBox .Yes | QMessageBox .No ) == QMessageBox .No ):
901
- return
902
- update_win = progressbar .UpdateWindow ()
903
- self .hsplitter .insertWidget (0 , update_win )
904
- up = update .GitUpdate (branch )
905
- msg = up .git_update ()
906
- update_win .label .setText (msg )
907
-
908
908
class SerialForm (serial_base , serial_window ):
909
909
def __init__ (self , parent = None ):
910
910
super (SerialForm , self ).__init__ ()
0 commit comments