diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2bc2de0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+__pycache__
+build
+dist
+*.spec
+test_folder
diff --git a/README.md b/README.md
index 5c739fd..a1d42fa 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@
Install [Python](https://www.python.org/)
You have to clone the repo. (git clone http://kairoto.com:8080/git/Kairoto/GVM.git)
Install the needed dependencies. (pip install requests pyinstaller)
-Use pyinstaller to build the app. (pyinstaller -D -F -n GVM.exe main.py)
+Use pyinstaller to build the app. (pyinstaller -D -w -F -n GVM.exe main.py)
Our pyinstaller command is recommended and tested.
@@ -33,7 +33,7 @@
If your system has problems with building, do this:
- Create a virtual environment by using
python -m venv {ENV_NAME}.
-- Activate the virtual environment (
python -m venv {ENV_NAME}).
+Activate the virtual environment (source {venv-folder}/bin/activate).
Install the needed dependencies. (pip install requests pyinstaller)
Use pyinstaller to build the app. (pyinstaller -D -F -n GVM.x86_64 main.py)
diff --git a/backend.py b/backend.py
index 396e418..20071ae 100644
--- a/backend.py
+++ b/backend.py
@@ -96,9 +96,10 @@
return installed_files
else:
tag_list.append('No options available')
+ return tag_list
elif curVersion != None and checkConnection() :
return curVersion
-
+
for i in response :
tag_list.append(i['tag_name'])
diff --git a/main.py b/main.py
index e5aa083..94ffb8c 100644
--- a/main.py
+++ b/main.py
@@ -67,7 +67,6 @@
def saveSettings() -> None :
backend.suddenSet(dirSetting.get(),tokenSetting.get())
- VERSION_MENU.destroy()
updateVersionList()
FRONTEND.event_generate('<>',when='tail')
settingsWindow.destroy()
@@ -94,13 +93,14 @@
global VERSION_MENU
global strvar
updatedList = backend.verOptions(mono.get(),CUR_VERSION)
- if CUR_VERSION != updatedList :
+ if CUR_VERSION != updatedList or VERSION_MENU.winfo_exists() :
CUR_VERSION = updatedList
strvar = tk.StringVar(CANVAS,CUR_VERSION[0])
VERSION_MENU = ttk.Combobox(master=CANVAS,textvariable=strvar,values=CUR_VERSION,state='readonly',font="Sans 12",style='M.TCombobox')
VERSION_MENU.bind('<>',isInstalled)
VERSION_MENU.bind('',isInstalled)
VERSION_MENU.place(width=256,height=36,relx=0.31,y=120)
+
isInstalled()
def setMono() -> None :