eplace msg_window with MassageDialog vpn stop icon corrected new icons question and warning , info and error revised
This commit is contained in:
23
wirepy.py
23
wirepy.py
@ -8,11 +8,12 @@ import shutil
|
||||
import sys
|
||||
import tkinter as tk
|
||||
import webbrowser
|
||||
from functools import partial
|
||||
from pathlib import Path
|
||||
from subprocess import CompletedProcess, run
|
||||
from tkinter import TclError, filedialog, ttk
|
||||
from tunnel import Tunnel
|
||||
|
||||
from shared_libs.message import MessageDialog
|
||||
from shared_libs.gitea import GiteaUpdate
|
||||
from shared_libs.common_tools import (
|
||||
LxTools,
|
||||
@ -462,10 +463,6 @@ class FrameWidgets(ttk.Frame):
|
||||
"""
|
||||
a tk.Toplevel window
|
||||
"""
|
||||
|
||||
def link_btn() -> None:
|
||||
webbrowser.open("https://git.ilunix.de/punix/Wire-Py")
|
||||
|
||||
msg_t = _(
|
||||
"Wire-Py a simple Wireguard Gui for Linux systems.\n\n"
|
||||
"Wire-Py is open source software written in Python.\n\n"
|
||||
@ -473,13 +470,17 @@ class FrameWidgets(ttk.Frame):
|
||||
"Use without warranty!\n"
|
||||
)
|
||||
|
||||
LxTools.msg_window(
|
||||
AppConfig.IMAGE_PATHS["icon_vpn"],
|
||||
AppConfig.IMAGE_PATHS["icon_vpn"],
|
||||
_("Info"),
|
||||
MessageDialog(
|
||||
"info",
|
||||
msg_t,
|
||||
_("Go to Wire-Py git"),
|
||||
link_btn,
|
||||
buttons=["OK", _("Go to Wire-Py git")],
|
||||
title=_("Info"),
|
||||
commands=[
|
||||
None,
|
||||
partial(webbrowser.open, "https://git.ilunix.de/punix/Wire-Py"),
|
||||
],
|
||||
icon=AppConfig.IMAGE_PATHS["icon_vpn"],
|
||||
wraplength=420,
|
||||
)
|
||||
|
||||
def update_setting(self, update_res) -> None:
|
||||
|
Reference in New Issue
Block a user