Message247549
By default, IDLE chooses courier for the text editor font.
As you'll see from the attached screenshot, while this looks ok on Windows, it's inconsistent with the standard fixed width fonts on Linux and OS X, and borders on unreadable particularly on the latter.
While this can be changed via the configuration dialog (the 'fixed' versions in the screenshots do just that), this is one of the things that really jumps out at you the first time you run IDLE, and not in a good way.
Tk defines a font named 'TkFixedFont', which we should take advantage of instead of hardcoding courier; details of the font can be retrieved via
tkinter.font.nametofont('TkFixedFont').actual()
Note there's a bit of an overlap here with #<20580>, but suggests that there may be some cases where determining defaults programmatically rather than hardcoding multiple defaults may be appropriate. |
|
Date |
User |
Action |
Args |
2015-07-29 00:17:11 | markroseman | set | recipients:
+ markroseman, terry.reedy, kbk, roger.serwy |
2015-07-29 00:17:08 | markroseman | set | messageid: <1438129028.22.0.104228147207.issue24745@psf.upfronthosting.co.za> |
2015-07-29 00:17:07 | markroseman | link | issue24745 messages |
2015-07-29 00:17:05 | markroseman | create | |
|