ripulito x win
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import win32com.client
|
||||
import os
|
||||
import hashlib
|
||||
import logging
|
||||
@@ -7,6 +6,7 @@ from typing import Dict
|
||||
from enum import IntEnum
|
||||
import time
|
||||
from nicegui import ui, run
|
||||
import win32com.client
|
||||
|
||||
# --- CONFIGURAZIONE LOGGING ---
|
||||
logging.basicConfig(
|
||||
@@ -256,9 +256,10 @@ def main_page():
|
||||
.style('text-shadow: 1px 1px 3px rgba(0,0,0,0.4); font-size: 1.2rem;')
|
||||
|
||||
with ui.row().classes('w-full justify-center mt-8 gap-4'):
|
||||
ui.button('AVVIA ARCHIVIAZIONE', icon='rocket_launch', color='green-8',
|
||||
start_btn = ui.button('AVVIA ARCHIVIAZIONE', icon='rocket_launch', color='green-8',
|
||||
on_click=lambda: archiver.start_archiving(arc_name.value, od_path.value, slider.value)) \
|
||||
.classes('q-px-lg').bind_enabled_from(archiver, 'running', backward=lambda x: not x)
|
||||
.classes('q-px-lg')
|
||||
start_btn.bind_enabled_from(archiver, 'running', backward=lambda x: not x)
|
||||
|
||||
ui.button('STOP', icon='block', color='red-8',
|
||||
on_click=lambda: setattr(archiver, 'running', False)) \
|
||||
@@ -267,4 +268,5 @@ def main_page():
|
||||
ui.markdown('--- \n *Ricorda: Chiudi Outlook prima di avviare il processo per evitare blocchi.*').classes('text-center text-grey-6 text-xs')
|
||||
|
||||
# Avvio dell'applicazione
|
||||
if __name__ == '__main__':
|
||||
ui.run(native=True, window_size=(800, 600), title='Outlook Archiver Pro')
|
||||
4
uv.lock
generated
4
uv.lock
generated
@@ -120,7 +120,7 @@ source = { virtual = "." }
|
||||
dependencies = [
|
||||
{ name = "nicegui" },
|
||||
{ name = "pywebview" },
|
||||
{ name = "pywin32" },
|
||||
{ name = "pywin32", marker = "sys_platform == 'win32'" },
|
||||
{ name = "tqdm" },
|
||||
]
|
||||
|
||||
@@ -128,7 +128,7 @@ dependencies = [
|
||||
requires-dist = [
|
||||
{ name = "nicegui", specifier = ">=3.5.0" },
|
||||
{ name = "pywebview", specifier = ">=6.1" },
|
||||
{ name = "pywin32", specifier = ">=311" },
|
||||
{ name = "pywin32", marker = "sys_platform == 'win32'", specifier = ">=311" },
|
||||
{ name = "tqdm", specifier = ">=4.67.1" },
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user