mirror of
https://github.com/python/cpython.git
synced 2025-09-25 01:43:11 +00:00
Issue #16511: Use default IDLE width and height if config param is not valid.
Patch Serhiy Storchaka.
This commit is contained in:
parent
1c6c90fc73
commit
d8590ff209
4 changed files with 48 additions and 27 deletions
|
@ -32,7 +32,8 @@ class FormatParagraph:
|
|||
self.editwin = None
|
||||
|
||||
def format_paragraph_event(self, event):
|
||||
maxformatwidth = int(idleConf.GetOption('main','FormatParagraph','paragraph'))
|
||||
maxformatwidth = int(idleConf.GetOption('main','FormatParagraph',
|
||||
'paragraph', type='int'))
|
||||
text = self.editwin.text
|
||||
first, last = self.editwin.get_selection_indices()
|
||||
if first and last:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue