HDPI right panel partialy hidden #2

Closed
opened 3 years ago by Ghost · 10 comments
Ghost commented 3 years ago

Please see screenshot attached.
Is there any configuration file I can amend to make it more visible?
Many thanks,
Silvio

Please see screenshot attached. Is there any configuration file I can amend to make it more visible? Many thanks, Silvio
josch commented 3 years ago
Owner

Hi! Thanks for your bug report. Does this issue only exist when the window is narrow or does it persist once you resize the window to make it wider?

Hi! Thanks for your bug report. Does this issue only exist when the window is narrow or does it persist once you resize the window to make it wider?
Ghost commented 3 years ago
Poster

Thank you for your prompt answer.
Actually, that is a full screen, I gust grabbed a part of the screen. It's like the right panel has a fixed wideness, perhaps a wideness limit?

Thank you for your prompt answer. Actually, that is a full screen, I gust grabbed a part of the screen. It's like the right panel has a fixed wideness, perhaps a wideness limit?
josch commented 3 years ago
Owner

That sounds more like a Tkinter bug then. At no point do I set the width of the right frame explicitly. The width of the right frame gets computed by tkinter using:

frame_right.pack(side=tkinter.TOP, expand=tkinter.TRUE, fill=tkinter.Y)

I guess this is just another reason why I should do a rewrite of the GUI with Qt. :(

That sounds more like a Tkinter bug then. At no point do I set the width of the right frame explicitly. The width of the right frame gets computed by tkinter using: frame_right.pack(side=tkinter.TOP, expand=tkinter.TRUE, fill=tkinter.Y) I guess this is just another reason why I should do a rewrite of the GUI with Qt. :(
Ghost commented 3 years ago
Poster

Thanks, can I just add a maths operator somewhere to increase the width (i.e., x2)?

Thanks, can I just add a maths operator somewhere to increase the width (i.e., x2)?
josch commented 3 years ago
Owner

As I said, the width it not explicitly set anywhere. The tkinter interface is setup such that all its elements automatically are large enough that all elements in it are visible. This somehow doesn't seem to work on your machine. Since I canno reproduce the problem, I don't see how I can help you fix the issue. Maybe file a bug against tkinter?

You could also run another experiment and try to verify that it's really your high dpi display that causes this issue. You can change dpi using xrandr --dpi.

As I said, the width it not explicitly set anywhere. The tkinter interface is setup such that all its elements automatically are large enough that all elements in it are visible. This somehow doesn't seem to work on your machine. Since I canno reproduce the problem, I don't see how I can help you fix the issue. Maybe file a bug against tkinter? You could also run another experiment and try to verify that it's really your high dpi display that causes this issue. You can change dpi using `xrandr --dpi`.
josch commented 3 years ago
Owner

Actually, I can reproduce your issue after running xrandr --dpi with very high dpi values. So this is indeed a problem with tkinter and high dpi values. Then I found this:

https://stackoverflow.com/questions/42961810/detect-dpi-scaling-factor-in-python-tkinter-application

And this let me fix the issue in d58d02092a

Let me know if this fixes your issue!

Actually, I can reproduce your issue after running `xrandr --dpi` with very high dpi values. So this is indeed a problem with tkinter and high dpi values. Then I found this: https://stackoverflow.com/questions/42961810/detect-dpi-scaling-factor-in-python-tkinter-application And this let me fix the issue in d58d02092a361df0b83ccb9a3382a6d2b32158de Let me know if this fixes your issue!
josch commented 3 years ago
Owner

Hi @Mnc2 can you confirm that the issue is fixed with my changes? I'd then do a new release. Thanks!

Hi @Mnc2 can you confirm that the issue is fixed with my changes? I'd then do a new release. Thanks!
Ghost commented 3 years ago
Poster

Hi @josch, thanks for the quick feedback. I downloaded the updated file, however I don't know how to update my current install. I'm on linux, Ubuntu 20.04.
Many thanks,
Silvio

Hi @josch, thanks for the quick feedback. I downloaded the updated file, however I don't know how to update my current install. I'm on linux, Ubuntu 20.04. Many thanks, Silvio
josch commented 3 years ago
Owner

I've just made a new release. Just grab it with pip. :)

I've just made a new release. Just grab it with pip. :)
Ghost commented 3 years ago
Poster

Hi @josch, it works like a charm.
Many thanks,

Silvio

Hi @josch, it works like a charm. Many thanks, Silvio
josch closed this issue 3 years ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: josch/plakativ#2
Loading…
There is no content yet.