Changing appearance font size in Preferences results in a crash.
See original GitHub issueDescription
What steps will reproduce the problem?
With fresh install on Windows 10, selected Tools->Preferences->Appearance, then increase font size to 14, select apply, spyder crashes.
When spyder is restated the new font size that was selected before the crash is being used.
Traceback
File "C:\Tellurium-Winpython-3.7\python-3.7.7.amd64\lib\site-packages\spyder\preferences\configdialog.py", line 236, in button_clicked
configpage.apply_changes()
File "C:\Tellurium-Winpython-3.7\python-3.7.7.amd64\lib\site-packages\spyder\preferences\configdialog.py", line 99, in apply_changes
self.apply_callback()
File "C:\Tellurium-Winpython-3.7\python-3.7.7.amd64\lib\site-packages\spyder\preferences\configdialog.py", line 282, in <lambda>
self.apply_settings(self.changed_options))
File "C:\Tellurium-Winpython-3.7\python-3.7.7.amd64\lib\site-packages\spyder\preferences\appearance.py", line 236, in apply_settings
self.main.apply_settings()
File "C:\Tellurium-Winpython-3.7\python-3.7.7.amd64\lib\site-packages\spyder\app\mainwindow.py", line 3122, in apply_settings
self.apply_panes_settings()
File "C:\Tellurium-Winpython-3.7\python-3.7.7.amd64\lib\site-packages\spyder\app\mainwindow.py", line 3137, in apply_panes_settings
plugin._update_margins()
File "C:\Tellurium-Winpython-3.7\python-3.7.7.amd64\lib\site-packages\spyder\plugins\base.py", line 230, in _update_margins
self._default_margins = layout.getContentsMargins()
AttributeError: 'NoneType' object has no attribute 'getContentsMargins'
Versions
- Spyder version: 4.1.4
- Python version: 3.7.7
- Qt version: 5.12.9
- PyQt5 version: 5.12.3
- Operating System: Windows 10
Dependencies
# Mandatory:
atomicwrites >=1.2.0 : 1.4.0 (OK)
chardet >=2.0.0 : 3.0.4 (OK)
cloudpickle >=0.5.0 : 1.5.0 (OK)
diff_match_patch >=20181111 : 20181111 (OK)
intervaltree : None (OK)
IPython >=4.0 : 7.16.1 (OK)
jedi =0.17.1 : 0.17.1 (OK)
nbconvert >=4.0 : 5.6.1 (OK)
numpydoc >=0.6.0 : 1.1.0 (OK)
paramiko >=2.4.0 : 2.7.1 (OK)
parso =0.7.0 : 0.7.0 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=5.3 : 5.7.0 (OK)
pygments >=2.0 : 2.6.1 (OK)
pylint >=1.0 : 2.5.3 (OK)
pyls >=0.34.0;<1.0.0 : 0.34.1 (OK)
qdarkstyle >=2.8 : 2.8.1 (OK)
qtawesome >=0.5.7 : 0.7.2 (OK)
qtconsole >=4.6.0 : 4.7.5 (OK)
qtpy >=1.5.0 : 1.9.0 (OK)
sphinx >=0.6.6 : 3.1.2 (OK)
spyder_kernels >=1.9.2;<1.10.0 : 1.9.3 (OK)
watchdog : None (OK)
zmq >=17 : 19.0.1 (OK)
# Optional:
cython >=0.21 : None (OK)
matplotlib >=2.0.0 : 3.2.2 (OK)
numpy >=1.7 : 1.19.0 (OK)
pandas >=0.13.1 : 1.0.5 (OK)
scipy >=0.17.0 : 1.5.1 (OK)
sympy >=0.7.3 : 1.6.1 (OK)
# Spyder plugins:
spyder_opensbml : 1.1.0 (OK)
spyder_teimport : 1.1.2 (OK)
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Font size of TextView in Android application changes on ...
Actually, Settings font size affects only sizes in sp . So all You need to do - define textSize in dp instead of...
Read more >Font Size Problems? Check Here First! - Codecademy
Go to your browser's settings and make sure in the font settings that your minimum font setting is set to 10px… if not...
Read more >Fix text that isn't displaying properly - Google Chrome Help
Text looks fuzzy or blurry (Windows only). If text doesn't look clear on your computer, try changing your font settings. Step 1: Use...
Read more >Adjust the display and text size on iPhone - Apple Support
Go to Settings > Accessibility > Display & Text Size. Adjust any of the following: Bold Text: Display the text in boldface characters....
Read more >Is there a way to permanently set the font and window size in ...
You need to go "Change Settings -> Window" and set it there. Do the same under Appearance for the font and size. Change...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I understand. We’re currently on 4.1.4, once 4.1.5 is out we’ll move to that to see if it helps.
Thanks for great tool.
Herbert Sauro
On Thu, Sep 10, 2020 at 2:40 PM Carlos Cordoba notifications@github.com wrote:
– Herbert Sauro, Professor University of Washington, Bioengineering 206-685-2119, www.sys-bio.org hsauro@uw.edu Books: http://books.analogmachine.org/
@dalthviz, please try to reproduce this problem on Windows with a pip environment.