Ajout de la version
This commit is contained in:
@@ -5,6 +5,8 @@ Accès lecture seule uniquement (fetch/pull/checkout, jamais de push).
|
|||||||
Tous les chemins sont relatifs à l'emplacement de l'exécutable.
|
Tous les chemins sont relatifs à l'emplacement de l'exécutable.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
VERSION = "0.1"
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
@@ -359,7 +361,7 @@ def do_restore(local_path):
|
|||||||
class App(tk.Tk):
|
class App(tk.Tk):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.title("Git Update Checker")
|
self.title(f"Git Update Checker v{VERSION}")
|
||||||
self.geometry("820x600")
|
self.geometry("820x600")
|
||||||
self.minsize(700, 450)
|
self.minsize(700, 450)
|
||||||
self.configure(bg="#1e1e2e")
|
self.configure(bg="#1e1e2e")
|
||||||
@@ -367,7 +369,7 @@ class App(tk.Tk):
|
|||||||
self.repos_config = load_repos()
|
self.repos_config = load_repos()
|
||||||
self.repo_results = []
|
self.repo_results = []
|
||||||
|
|
||||||
log.info("=== Demarrage Git Update Checker ===")
|
log.info(f"=== Demarrage Git Update Checker v{VERSION} ===")
|
||||||
self._build_ui()
|
self._build_ui()
|
||||||
self.after(100, self._check_self_update_then_repos)
|
self.after(100, self._check_self_update_then_repos)
|
||||||
|
|
||||||
@@ -395,7 +397,7 @@ class App(tk.Tk):
|
|||||||
# Header
|
# Header
|
||||||
header = ttk.Frame(self)
|
header = ttk.Frame(self)
|
||||||
header.pack(fill="x", padx=15, pady=(15, 5))
|
header.pack(fill="x", padx=15, pady=(15, 5))
|
||||||
ttk.Label(header, text="Git Update Checker", style="Title.TLabel").pack(side="left")
|
ttk.Label(header, text=f"Git Update Checker v{VERSION}", style="Title.TLabel").pack(side="left")
|
||||||
self.status_label = ttk.Label(header, text="Verification en cours...", style="Status.TLabel")
|
self.status_label = ttk.Label(header, text="Verification en cours...", style="Status.TLabel")
|
||||||
self.status_label.pack(side="right")
|
self.status_label.pack(side="right")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user