Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HiDPI + Wayland + Spyder 6: bad window size in preferences #21980

Open
Firestar-Reimu opened this issue Apr 8, 2024 · 6 comments
Open

HiDPI + Wayland + Spyder 6: bad window size in preferences #21980

Firestar-Reimu opened this issue Apr 8, 2024 · 6 comments

Comments

@Firestar-Reimu
Copy link

图片

You can see that the font of Syntax Highlighting is cut by the window, and the window for previewing is also too small

图片

the line height can be adjusted by dragging the window border but the window of Appearance cannot be bigger

I have tested on Screen Resolution of Normal/Enable Auto HiDPI/Manual Scaling

@Firestar-Reimu
Copy link
Author

图片

In fact Spyder 5 looks worse, small icons on big icon boxes, the left menu of preferences is also bad

@majneb
Copy link

majneb commented May 14, 2024

In fact Spyder 5 looks worse, small icons on big icon boxes, the left menu of preferences is also bad

As a workaround you can try to run spyder like this : QT_AUTO_SCREEN_SCALE_FACTOR=1 spyder.
For me it solved the issue you described with Spyder 5.

@ccordoba12
Copy link
Member

Hey @Firestar-Reimu, thanks for reporting. Could you try @majneb workaround and let us if it works for you?

@Firestar-Reimu
Copy link
Author

image

OK on Spyder 6, the icons looks a lot bigger, but the preferences window looks better (although it fills the entire screen)

image

Notebook also seems fine:

image

@Firestar-Reimu
Copy link
Author

BUT after I turn it off and re-open spyder, I cannot start with spyder or it will stuck:

Could not find the Qt platform plugin "wayland" in ""
^CTraceback (most recent call last):
  File "/home/firestar/.miniconda/bin/spyder", line 11, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/firestar/.miniconda/lib/python3.12/site-packages/spyder/app/start.py", line 286, in main
    mainwindow.main(options, args)
  File "/home/firestar/.miniconda/lib/python3.12/site-packages/spyder/app/mainwindow.py", line 1364, in main
    app = create_application()
          ^^^^^^^^^^^^^^^^^^^^
  File "/home/firestar/.miniconda/lib/python3.12/site-packages/spyder/app/utils.py", line 298, in create_application
    app.set_font()
  File "/home/firestar/.miniconda/lib/python3.12/site-packages/spyder/utils/qthelpers.py", line 824, in set_font
    self.set_monospace_interface_font(app_font)
  File "/home/firestar/.miniconda/lib/python3.12/site-packages/spyder/utils/qthelpers.py", line 849, in set_monospace_interface_font
    plain_font.setPointSize(monospace_size)
KeyboardInterrupt

Only I start it with QT_AUTO_SCREEN_SCALE_FACTOR=1 spyder every time will it load swiftly

@ccordoba12 ccordoba12 modified the milestones: v6.0.2, v6.x.x Sep 26, 2024
@ccordoba12 ccordoba12 modified the milestones: v6.x.x, v6.0.3 Oct 10, 2024
@ccordoba12
Copy link
Member

Sorry for the late reply @Firestar-Reimu. You said:

OK on Spyder 6, the icons looks a lot bigger, but the preferences window looks better (although it fills the entire screen)

That's the way we designed the interface, so there's no problem with that.

BUT after I turn it off and re-open spyder, I cannot start with spyder or it will stuck

We'll try to fix that in a future version, but I think running spyder --reset in a terminal should solve that problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants