Compare commits
8 Commits
0f3903d167
...
1.07.0925
Author | SHA1 | Date | |
---|---|---|---|
e5dc403058 | |||
6faf65ad08 | |||
bdf77fd45c | |||
0d694adc2d | |||
bba9c406b7 | |||
ec76940dca | |||
3bf4380e73 | |||
6242dd7b0d |
2
gitea.py
2
gitea.py
@@ -67,7 +67,7 @@ class GiteaUpdate:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
to_down: str = f"wget -qP {Path.home()} {" "} {urld}"
|
to_down: str = f"wget -qP {Path.home()} {' '} {urld}"
|
||||||
result: int = subprocess.call(to_down, shell=True)
|
result: int = subprocess.call(to_down, shell=True)
|
||||||
if result == 0:
|
if result == 0:
|
||||||
shutil.chown(f"{Path.home()}/{res}.zip", 1000, 1000)
|
shutil.chown(f"{Path.home()}/{res}.zip", 1000, 1000)
|
||||||
|
Binary file not shown.
@@ -58,12 +58,17 @@ class AppConfig:
|
|||||||
# UI configuration
|
# UI configuration
|
||||||
UI_CONFIG: Dict[str, Any] = {
|
UI_CONFIG: Dict[str, Any] = {
|
||||||
"window_title2": "LogViewer",
|
"window_title2": "LogViewer",
|
||||||
"window_size": (590, 450),
|
"window_size": (590, 460),
|
||||||
"font_family": "Ubuntu",
|
"font_family": "Ubuntu",
|
||||||
"font_size": 11,
|
"font_size": 11,
|
||||||
"resizable_window": (True, True),
|
"resizable_window": (True, True),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Images and icons paths
|
||||||
|
IMAGE_PATHS: Dict[str, Path] = {
|
||||||
|
"icon_log": "/usr/share/icons/lx-icons/48/log.png",
|
||||||
|
}
|
||||||
|
|
||||||
# System-dependent paths
|
# System-dependent paths
|
||||||
SYSTEM_PATHS: Dict[str, Path] = {
|
SYSTEM_PATHS: Dict[str, Path] = {
|
||||||
"tcl_path": "/usr/share/TK-Themes",
|
"tcl_path": "/usr/share/TK-Themes",
|
||||||
|
@@ -466,7 +466,7 @@ class LogViewer(tk.Tk):
|
|||||||
def directory_load(self, modul_name, _):
|
def directory_load(self, modul_name, _):
|
||||||
|
|
||||||
filepath = filedialog.askopenfilename(
|
filepath = filedialog.askopenfilename(
|
||||||
initialdir=f"{Path.home() / ".local/share/lxlogs/"}",
|
initialdir=f"{Path.home() / '.local/share/lxlogs/'}",
|
||||||
title="Select a Logfile File",
|
title="Select a Logfile File",
|
||||||
filetypes=[("Logfiles", "*.log")],
|
filetypes=[("Logfiles", "*.log")],
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user