mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-24 06:46:40 +00:00
Update utilities.py
This commit is contained in:
parent
eefff3c85c
commit
73dea2872c
@ -337,6 +337,9 @@ def show_custom_dialog(title, text, options):
|
|||||||
|
|
||||||
def show_yes_no_dialog(title, text):
|
def show_yes_no_dialog(title, text):
|
||||||
try:
|
try:
|
||||||
|
import pipmaster as pm
|
||||||
|
if not pm.is_installed("tk"):
|
||||||
|
pm.install("tk")
|
||||||
import tkinter as tk
|
import tkinter as tk
|
||||||
from tkinter import messagebox
|
from tkinter import messagebox
|
||||||
# Create a new Tkinter root window and hide it
|
# Create a new Tkinter root window and hide it
|
||||||
@ -1267,4 +1270,4 @@ def remove_text_from_string(string: str, text_to_find:str):
|
|||||||
if index != -1:
|
if index != -1:
|
||||||
string = string[:index]
|
string = string[:index]
|
||||||
|
|
||||||
return string
|
return string
|
||||||
|
Loading…
Reference in New Issue
Block a user