Fix kiosk mode — force plein écran sans WM
FramelessWindowHint + setGeometry(screen) pour fonctionner sans window manager (Xvfb, RPi kiosk). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -12,12 +12,15 @@ def main():
|
||||
app.setApplicationName("Photostation")
|
||||
|
||||
window = MainWindow()
|
||||
window.setWindowFlags(Qt.WindowType.FramelessWindowHint)
|
||||
|
||||
# Mode kiosk si argument --kiosk
|
||||
if "--kiosk" in sys.argv:
|
||||
# Plein écran : prend toute la résolution de l'écran
|
||||
screen = app.primaryScreen().geometry()
|
||||
window.setGeometry(screen)
|
||||
window.showFullScreen()
|
||||
else:
|
||||
window.resize(1024, 600)
|
||||
window.resize(1024, 768)
|
||||
window.show()
|
||||
|
||||
sys.exit(app.exec())
|
||||
|
||||
Reference in New Issue
Block a user