classification
Title: IDLE - centralize ui policies and small utilities
Type: enhancement Stage: resolved
Components: IDLE Versions: Python 3.7, Python 3.6
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: kbk, markroseman, roger.serwy, terry.reedy
Priority: normal Keywords:

Created on 2015-09-08 00:42 by markroseman, last changed 2017-06-23 05:10 by terry.reedy. This issue is now closed.

Files
File name Uploaded Description Edit
ui.py markroseman, 2015-09-08 00:42
Messages (2)
msg250143 - (view) Author: Mark Roseman (markroseman) * Date: 2015-09-08 00:42
Certain policy decisions should be in one place in the code (DRY). 

These could be based on preferences or environment (should we be using ttk?), which operating system we're using (what hand cursor looks best?) or even the version of the operating system we're running (do we need to include a sizegrip?), etc.

Similarly, there are some small utilities that should be available in many places (e.g. what events to bind to for context menu clicks, setting a dialog to modal appearance) that don't necessarily fit elsewhere.

I've attached ui.py which will be a starting place for these sorts of things.
msg296677 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2017-06-23 05:10
The specific patch is out-of-date.  IDLE 3.6+ requires tk 8.5+. We should finish converting everything to ttk before 3.7.0.  In practice, I believe people are using late 8.5 or 8.6.  8.5.9 on Apple is too buggy to really use and latest ActiveState 8.5 for mac (.18?) is recommended.  macosx has functions to identify specific mac graphics.
History
Date User Action Args
2017-06-23 05:10:15terry.reedysetstatus: open -> closed
versions: + Python 3.7, - Python 2.7, Python 3.4, Python 3.5
messages: + msg296677

assignee: terry.reedy
resolution: out of date
stage: resolved
2015-09-08 00:42:13markrosemancreate