New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDLE: Improve config dialog font change user interface #68964
Comments
A recurring issue with students using IDLE is the user interface for the fonts and tabs preference settings.
|
I agree that this tab needs an overhall. Other ideas that I remember:
|
What do you think of the layout in cfg_font_layout.png? (before/after) |
The side-by-side part I obviously like, but I think we need to keep 'Base Editor Font' since this and only this is affected by the selection. I think there should be an option to increase the 'other' font used for everything else. |
FWIW, I would also like a pair of hotkeys, Cmd + and Cmd - to increase and decrease the font (this would greatly improve usability for font size changes). There is good precedent for this in other editors and terminal programs. |
Agree about the font resizing menu items/shortcuts... your original bpo-17642 remains open for this |
I agree. Cntl/Cmd +/- font sizing works in turtledemo within sensible limits. The code could be copied. |
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. Additional changes for this issue or new related issues.
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.
|
I now think that the proper widget for font resizing might be a ttk.Spinbox (but see below). bpo-33962 discusses issues around using this widget. bpo-33397 is about adding local font resizing with hot key or mousewheel to text and help viewers via a new FontSizer class. Font Sizer should be usable with the sample Text instance. Size changes in the sample should propagate to the size widget. When done, it might suffice to use a simple entry box for font size. We already use them for counts on the General tab. Since we do not want to encourage indent changes, I think the indent widget should be an entry box with bounds check. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: