Update project files and build output

This commit is contained in:
2026-02-20 14:25:02 +02:00
parent 351fd3dfea
commit 63b46206b6
8 changed files with 11 additions and 47 deletions

42
.gitignore vendored
View File

@@ -1,25 +1,5 @@
# Build artifacts
build/
<<<<<<< HEAD
# Python cache
__pycache__/
*.pyc
*.pyo
*.pyd
.Python
# Virtual environments
venv/
env/
ENV/
# Application data folders
label/ label/
logs/ build/
pdf_backup/
=======
dist/
logs/ logs/
pdf_backup/ pdf_backup/
venv/ venv/
@@ -28,24 +8,4 @@ __pycache__/
*.pyc *.pyc
*.pyo *.pyo
*.pyd *.pyd
>>>>>>> 747656e (Fix Windows browse, status label mapping, and repo cleanup)
# User-specific configuration
conf/app.conf
# IDE / Editor
.vscode/
.idea/
*.swp
*.swo
*~
# OS files
.DS_Store
Thumbs.db
desktop.ini
# Python packaging
*.egg-info/
.eggs/
*.egg

View File

@@ -6,7 +6,7 @@ a = Analysis(
pathex=[], pathex=[],
binaries=[], binaries=[],
datas=[], datas=[],
hiddenimports=['kivy', 'PIL', 'barcode', 'reportlab', 'print_label', 'print_label_pdf', 'svglib', 'cairosvg', 'watchdog', 'watchdog.observers', 'watchdog.events', 'pystray'], hiddenimports=['kivy', 'kivy.core.window', 'kivy.core.text', 'kivy.core.image', 'kivy.uix.boxlayout', 'kivy.uix.gridlayout', 'kivy.uix.label', 'kivy.uix.textinput', 'kivy.uix.button', 'kivy.uix.spinner', 'kivy.uix.scrollview', 'kivy.uix.popup', 'kivy.clock', 'kivy.graphics', 'PIL', 'barcode', 'reportlab', 'print_label', 'print_label_pdf', 'svglib', 'cairosvg', 'watchdog', 'watchdog.observers', 'watchdog.events', 'pystray', 'win32timezone'],
hookspath=[], hookspath=[],
hooksconfig={}, hooksconfig={},
runtime_hooks=[], runtime_hooks=[],

View File

@@ -52,6 +52,7 @@ args = [
'--hidden-import=watchdog.observers', '--hidden-import=watchdog.observers',
'--hidden-import=watchdog.events', '--hidden-import=watchdog.events',
'--hidden-import=pystray', '--hidden-import=pystray',
'--hidden-import=win32timezone',
] ]
if __name__ == '__main__': if __name__ == '__main__':

View File

@@ -78,6 +78,7 @@ pyinstaller label_printer_gui.py ^
--hidden-import=watchdog.observers ^ --hidden-import=watchdog.observers ^
--hidden-import=watchdog.events ^ --hidden-import=watchdog.events ^
--hidden-import=pystray ^ --hidden-import=pystray ^
--hidden-import=win32timezone ^
-y -y
if errorlevel 1 ( if errorlevel 1 (

View File

@@ -1,4 +1,4 @@
[Settings] [Settings]
file_path = C:\Users\Public\Documents\check.txt file_path = C:\temp\check.txt
printer = Microsoft Print to P printer = ZDesigner ZQ630 Plus

BIN
dist/LabelPrinter.exe vendored Normal file

Binary file not shown.

View File

@@ -15,7 +15,6 @@ from kivy.uix.popup import Popup
from kivy.core.window import Window from kivy.core.window import Window
from kivy.uix.image import Image as KivyImage from kivy.uix.image import Image as KivyImage
from kivy.graphics import Color, Rectangle from kivy.graphics import Color, Rectangle
from kivy.uix.filechooser import FileChooserListView
import os import os
import threading import threading
@@ -646,14 +645,16 @@ printer = PDF
def browse_file(self, instance): def browse_file(self, instance):
"""Open file browser to select file to monitor""" """Open file browser to select file to monitor"""
# On Windows, use native dialog to avoid missing-library issues with Kivy FileChooser # On Windows, always use native dialog to avoid Kivy FileChooser win32timezone issues in packaged apps
if platform.system() == 'Windows': if os.name == 'nt':
selected_file = self._browse_file_windows_native() selected_file = self._browse_file_windows_native()
if selected_file: if selected_file:
self.file_input.text = selected_file self.file_input.text = selected_file
self.save_config() self.save_config()
return return
from kivy.uix.filechooser import FileChooserListView
content = BoxLayout(orientation='vertical', spacing=10, padding=10) content = BoxLayout(orientation='vertical', spacing=10, padding=10)
# File chooser # File chooser

View File

@@ -3,4 +3,5 @@ pillow
pycups pycups
kivy kivy
reportlab reportlab
pywin32