Cimbali / pympress

Pympress is a simple yet powerful PDF reader designed for dual-screen presentations
https://cimbali.github.io/pympress/
GNU General Public License v2.0
1.18k stars 89 forks source link

Shortcut f does not set content window fullscreen #149

Closed eddrog closed 3 years ago

eddrog commented 4 years ago

Environment

Pympress

Expected behaviour

Shortcut f sets content fullscreen

Steps to reproduce

Start presentation and press key f (several times)

Problem

The content window goes not to fullscreen and the entry in the menu presentation the checkbox fullscreen is not set. If I select the checkbox in the menu than all works as expected. It seams that the shortcut f is not working properly.

Cimbali commented 4 years ago

Can you share your configuration file and log file? The correct paths are specified in the Help > About dialog.

eddrog commented 4 years ago

pympress.conf.txt pympress.log

Cimbali commented 4 years ago

Does any of the other shortcuts work? F5 or F11 for example?

eddrog commented 4 years ago

Same behaviour for all keys

Cimbali commented 4 years ago

Had a look, but nothing seems out of the ordinary in your configuration and nothing at all shows up in the log.

Can you try with debug logging? For example starting with pympress --log=debug

eddrog commented 4 years ago
ERROR:pympress.extras:Videounterstützung auf Basis von GStreamer ist deaktiviert.
Traceback (most recent call last):
  File "C:\projects\pympress/pympress/extras.py", line 420, in _setup_backends
  File "C:\projects\pympress/pympress/media_overlays/gst_backend.py", line 33, in <module>
  File "C:/msys64/mingw64/lib/python3.8/site-packages/gi/__init__.py", line 129, in require_version
ValueError: Namespace Gst not available
ERROR:pympress.extras:Videounterstützung auf Basis von VLC ist deaktiviert.
Traceback (most recent call last):
  File "C:\projects\pympress/pympress/extras.py", line 438, in _setup_backends
  File "C:\projects\pympress/pympress/media_overlays/vlc_backend.py", line 32, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "C:/msys64/mingw64/lib/python3.8/site-packages/vlc.py", line 207, in <module>
  File "C:/msys64/mingw64/lib/python3.8/site-packages/vlc.py", line 163, in find_lib
  File "C:/msys64/mingw64/lib/python3.8/ctypes/__init__.py", line 373, in __init__
FileNotFoundError: Could not find module 'libvlc.dll'. Try using the full path with constructor syntax.
INFO:__main__:Pympress: 1.5.2 ; Python: 3.8.1 ; OS: Windows 10 10.0.18362 ; Gtk 3.24.13 ; GLib 2.62.1 ; Poppler 0.84.0 cairo ; Cairo 1.16.0 , pycairo 1.19.0 ; Media: Gif-Wiedergabe mit GtkImage
CRITICAL:__main__:Uncaught exception:
Traceback (most recent call last):
  File "C:\projects\pympress/pympress/ui.py", line 490, in save_and_quit
AttributeError: 'NoneType' object has no attribute 'get_state'
eddrog commented 4 years ago

You can not reproduce this behaviour?

Cimbali commented 4 years ago

No I haven’t been able to reproduce the behaviour. However the uncaught exception in your log file might be interesting.

The code is self.c_win.get_window().get_state() and the returned window seems to be None somehow. That window attribute is obviously also used to set the window fullscreen.

raphaelquast commented 4 years ago

i can reproduce this on my pc (windows 10)!

with a fresh-install of pympress all shortcuts work perfectly except for the fullscreen-ones

Cimbali commented 4 years ago

Thanks @raphaelquast, can you also show your logs ? Maybe we can get a better idea of what’s happening

raphaelquast commented 4 years ago

here you go: (i guess it still contains some previous errors as well from testing the annotate-feature ... but maybe you find something useful in there 😄 ) pympress.log

if you want i can generate a plain new one as well?

Cimbali commented 3 years ago

This will need some testing again with the current master (or next release), as the whole system for shortcuts has changed.

For what it’s worth, the shortcut f works with 1.6.0-beta4 for me (but I couldn’t reproduce initially either).

eddrog commented 3 years ago

I have tested it on a Win10 Desktop -> works. Tonight I will test it on my Win10 tablet and I'll let you know if it is fixed. But the Big keys next/prev and laserpointer switch are deactivated.

eddrog commented 3 years ago

Also testet on Win10 Tablet -> fixed. But the keys are still disabled next/prev and laserpointer (version beta5).

Cimbali commented 3 years ago

Thanks @eddrog, I'm closing this issue and I'll fix the buttons before the release.