This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients markroseman, rhettinger, terry.reedy
Date 2017-07-10.22:05:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1499724315.12.0.518274209278.issue24776@psf.upfronthosting.co.za>
In-reply-to
Content
Make this the master issue for improving the font tab user interface by improving components and rearranging them.  With basic tests done, I am moving this up in priority.

Related issues currently open.
#30870 (dependency) made Up/Down change font selection; unit test needed.
#27755 replaces IDLE's custom DynOptionMenu with ttk.Combobox.  Comboboxes allow key entry of a value and the arrow toggles. See msg298091 for comparison and evaluation for font page.
#13802 (dependency) is about the improving the sample display.
#17642 is about font resizing by hot key and wheel in editor.
#20917 is about the font change notification system.

Additional changes for this issue or new related issues.

* Selecting a font by name (as well as a font size by number) can be done with an entry box with a validator linked to the listbox.  If a ttk Combobox can be locked open, I would try that.  See #27755.  For a demo of another alternative, run the tk fontchooser.

import tkinter
root = tkinter.Tk()
root.tk.call('tk', 'fontchooser', 'show')

For IDLE, I like some parts, not others.  I view it as an alternate mockup for ideas to build on.

* Mark's mockup removes "Base Editor Font".  If an editor window can have its font individually resized, then the settings on the font page define just that.  'Font Size' would then have to be 'Starting [or Default] Font Size'. 

* Font size a slider?  I am not convinced.  It would have to be vertical to go up to 40.  (I added larger sizes by request for classroom projector use.)  On the other hand, it would allow any size in the given range.  A spinbox that could be spun by mousewheel would also and stay compact.  Or use a ttk Combobox.

* See #13802 for discussion of sample display.

* Indent.  I don't understand "cries out to be moved (usually when people are intending to increase their font size)."  But I think it take too much space and should be shrunk to a spin box or drop box.  Reduced to a single line, I am thinking of moving it to the General tab, or perhaps a new Editor tab.  It does not particularly belong with font selection.

* Factor the Font page, with associated Variables and their tracers, other attributes, and methods, into a FontPage class.
History
Date User Action Args
2017-07-10 22:05:15terry.reedysetrecipients: + terry.reedy, rhettinger, markroseman
2017-07-10 22:05:15terry.reedysetmessageid: <1499724315.12.0.518274209278.issue24776@psf.upfronthosting.co.za>
2017-07-10 22:05:15terry.reedylinkissue24776 messages
2017-07-10 22:05:14terry.reedycreate