[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Roundup Robot added the comment: New changeset ffe091ebd5de by Andrew Svetlov in branch '3.2': Issue #16511: Use default IDLE width and height if config param is not valid. http://hg.python.org/cpython/rev/ffe091ebd5de New changeset 10656b0975b3 by Andrew Svetlov in branch '3.3': Issue #16511: Use default IDLE width and height if config param is not valid. http://hg.python.org/cpython/rev/10656b0975b3 New changeset a7c9869a5114 by Andrew Svetlov in branch 'default': Issue #16511: Use default IDLE width and height if config param is not valid. http://hg.python.org/cpython/rev/a7c9869a5114 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Roundup Robot added the comment: New changeset 133f87a7dbf5 by Andrew Svetlov in branch '2.7': Issue #16511: Use default IDLE width and height if config param is not valid. http://hg.python.org/cpython/rev/133f87a7dbf5 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Andrew Svetlov added the comment: Fixed. Trung, I think installation procedure is not subject of this issue. If needed please create new one. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Trung Doan added the comment: I think I will leave it at that, because in the general case probably some things should be re-initialised during a new/re-install while others should be left as is, but as a beginner I am far from knowing which ones are which. Trung == On Mon, Dec 24, 2012 at 10:20 PM, Andrew Svetlov rep...@bugs.python.orgwrote: Andrew Svetlov added the comment: Fixed. Trung, I think installation procedure is not subject of this issue. If needed please create new one. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Andrew Svetlov added the comment: Ok. Agree with you. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Trung Doan added the comment: Suggestion: When Python is installed, it starts its configurations files afresh. Trung Doan === On Wed, Nov 21, 2012 at 8:54 AM, Serhiy Storchaka rep...@bugs.python.orgwrote: Serhiy Storchaka added the comment: Patch updated. Added warning for case when user config broken. Thanks Roger for suggestion. -- Added file: http://bugs.python.org/file28058/idle_safe_getoption_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
New submission from Trung Doan: In Python 2.5.4's config-main.cfg file, if [EditorWindow]'s width and height are left blank or set to zero, then IDLE window won't show. Uninstalling and re-installing Python didn't help. Problem solved only when the config-main.cfg file was manually edited to give non-zero values. -- components: IDLE messages: 175979 nosy: doanviettrung priority: normal severity: normal status: open title: IDLE configuration file: blank height and width fields trip up IDLE type: crash versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Mark Dickinson added the comment: Thanks for the bug report. Are you in a position to test whether this is still an issue for Python 2.7? (Python 2.5 is no longer maintained.) -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Roger Serwy added the comment: This is still a bug with 2.7 and 3.4. I just tried leaving the width and height fields in config-main.cfg and IDLE had raised the error: _tkinter.TclError: expected integer but got The width and height keys in the text_options dictionary in EditorWindow.py are set to blank strings instead of a number of a number as a string. IDLE not showing up is a symptom of issue13582. -- nosy: +serwy versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Serhiy Storchaka added the comment: When width or height are 0, IDLE starts and show window with some minimal width or height. When width or height are empty or invalid IDLE can't start. The proposed patch makes IDLE more resistant against such broken configs. -- keywords: +patch nosy: +kbk, serhiy.storchaka versions: -Python 2.6, Python 3.1 Added file: http://bugs.python.org/file28056/idle_safe_getoption.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Roger Serwy added the comment: Serhiy, I applied your patch and it works. However, the initial window size in IDLE Preferences-General are listed as None instead of a number. Perhaps if the userCfg has an invalid value then the defaultCfg should be returned? -- versions: +Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Roger Serwy added the comment: Changed from Crash to Behavior, as the interpreter is not crashing. Also undid my mistake of re-adding 2.6 and 3.1. -- type: crash - behavior versions: -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Serhiy Storchaka added the comment: Perhaps if the userCfg has an invalid value then the defaultCfg should be returned? Yes, you are right. Thanks for suggestion. -- Added file: http://bugs.python.org/file28057/idle_safe_getoption_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file28056/idle_safe_getoption.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Serhiy Storchaka added the comment: Patch updated. Added warning for case when user config broken. Thanks Roger for suggestion. -- Added file: http://bugs.python.org/file28058/idle_safe_getoption_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com