mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 20:37:51 +00:00
Update update_script.py
This commit is contained in:
parent
eed4d492d2
commit
3beb957f99
@ -5,15 +5,17 @@ import subprocess
|
||||
import argparse
|
||||
from pathlib import Path
|
||||
from ascii_colors import ASCIIColors, trace_exception
|
||||
import tkinter as tk
|
||||
from tkinter import messagebox
|
||||
|
||||
def show_error_dialog(message):
|
||||
try:
|
||||
import tkinter as tk
|
||||
from tkinter import messagebox
|
||||
root = tk.Tk()
|
||||
root.withdraw() # Hide the main window
|
||||
messagebox.showerror("Error", message)
|
||||
root.destroy()
|
||||
|
||||
except:
|
||||
ASCIIColors.error(message)
|
||||
def run_git_pull():
|
||||
try:
|
||||
ASCIIColors.info("----------------> Updating the code <-----------------------")
|
||||
|
Loading…
Reference in New Issue
Block a user