FS#46991 - [python] Idle throws exception when trying to set options

Attached to Project: Arch Linux
Opened by Alan Moore (lykwydchykyn) - Friday, 06 November 2015, 23:03 GMT
Last edited by Jan de Groot (JGC) - Tuesday, 05 November 2019, 11:33 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Angel Velasquez (angvp)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

IDLE throws an exception when I select "Options-> Configure IDLE". After this, the menu is unresponsive.

Additional info:

This is a Traceback of the exception:

Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python3.5/tkinter/__init__.py", line 1549, in __call__
return self.func(*args)
File "/usr/lib/python3.5/idlelib/EditorWindow.py", line 537, in config_dialog
configDialog.ConfigDialog(self.top,'Settings')
File "/usr/lib/python3.5/idlelib/configDialog.py", line 71, in __init__
self.LoadConfigs()
File "/usr/lib/python3.5/idlelib/configDialog.py", line 1078, in LoadConfigs
self.LoadFontCfg()
File "/usr/lib/python3.5/idlelib/configDialog.py", line 980, in LoadFontCfg
self.SetFontSample()
File "/usr/lib/python3.5/idlelib/configDialog.py", line 858, in SetFontSample
self.labelFontSample.config(font=newFont)
File "/usr/lib/python3.5/tkinter/__init__.py", line 1330, in configure
return self._configure('configure', cnf, kw)
File "/usr/lib/python3.5/tkinter/__init__.py", line 1321, in _configure
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: expected integer but got ""


Steps to reproduce:

1. Open IDLE
2. Select "Options=>Configure IDLE"
This task depends upon

Closed by  Jan de Groot (JGC)
Tuesday, 05 November 2019, 11:33 GMT
Reason for closing:  Fixed
Comment by Doug Newgard (Scimmia) - Friday, 06 November 2015, 23:13 GMT
I have no idea what package you're reporting a bug for.
Comment by Lex Black (TrialnError) - Saturday, 07 November 2015, 02:48 GMT
It's about the Simple Python IDE IDLE included with the python package
Comment by Alan Moore (lykwydchykyn) - Saturday, 07 November 2015, 04:24 GMT
Apologies, first time reporting a bug here. Wasn't sure how to correct the title.
Comment by Felix Yan (felixonmars) - Saturday, 07 November 2015, 06:44 GMT
Cannot reproduce here for either python 2 or 3. A quick google gave me this, maybe related: https://bugs.python.org/issue24951
Comment by Levon Melikyan (qandak) - Friday, 27 November 2015, 13:53 GMT
I have had the same problem. Creating "~/.idlerc/config-main.cfg" file with some configs worked for me.
You can open idle2, make some changes for font and font size, and save that changes. It will create the file I mentioned above.
Fortunately or not, both idle and idle2 use the same user config file.
Comment by jozef riha (jose1711) - Saturday, 07 May 2016, 09:37 GMT
can someone please post a minimal config-main.cfg? idle2 is throwing the same error on my box
Comment by lars (wysaard) - Tuesday, 17 May 2016, 17:13 GMT
I pulled this one off the web:

http://pastebin.com/hAWuPkYt

Loading...