msg66747 - (view) |
Author: Guilherme Polo (gpolo) *  |
Date: 2008-05-12 18:00 |
I'm moving lib-tk to a tkinter package, I've sent a patch for this which can be found at issue 2775 but I started wrong (did a patch against py3k directly). |
|
|
msg66756 - (view) |
Author: Guilherme Polo (gpolo) *  |
Date: 2008-05-12 20:43 |
I've talked with Brett and we agreed on a plan slightly different from the one described in PEP 3108, which seems to be better for tkinter. The first step would be creating a tkinter package and then moving each file in lib-tk to this new directory, correcting imports and the case and renaming Tkinter.py to __init__.py so the directory is marked as a package. After this step I can proceed with more patches, including stub modules, tests in test_py3kwarn and continue with the rest of the plan. I'm attaching two files I've used to do this first step. One is a .py file, which will do the proper renamings and then there is a patch which should be applied to fix imports inside the tkinter package. |
|
|
msg66951 - (view) |
Author: Guilherme Polo (gpolo) *  |
Date: 2008-05-16 15:44 |
New patch, this one does the following: * Fix tkinter imports in idlelib, pydoc and Canvas (deprecated) * Creates stub modules for all old Tkinter modules, except tkFileDialog and tkSimpleDialog * Updates test_py3kwarn for all these renames What is missing now: * Merging tkSimpleDialog into tkinter.simpledialog and tkFileDialog into tkinter.filedialog, I believe this should be done using svn merge and then correct the result a bit. * Update docs |
|
|
msg66952 - (view) |
Author: Georg Brandl (georg.brandl) *  |
Date: 2008-05-16 15:48 |
Committed step 2 patch as r63376. |
|
|
msg66955 - (view) |
Author: Guilherme Polo (gpolo) *  |
Date: 2008-05-16 16:48 |
Patching for updating the docs added. I've also added a script that should be executed after the patch is applied, it will rename scrolledtext.rst to tkinter.scrolledtext.rst; tix.rst to tkinter.rst and turtle.rst to tkinter.turtle.rst. |
|
|
msg66957 - (view) |
Author: Guilherme Polo (gpolo) *  |
Date: 2008-05-16 17:17 |
After merging all these changes in py3k, lib-tk should be removed from sys.path there. Patch added for this. Note that the iss script at PC/VS7.1 should be regenerated |
|
|
msg66999 - (view) |
Author: Guilherme Polo (gpolo) *  |
Date: 2008-05-17 15:03 |
This new patch handles the merging of tkSimpleDialog into tkinter.simpledialog and tkFileDialog into tkinter.filedialog. After doing it, the old files may be removed from lib-tk: svn del Lib/lib-tk/tkSimpleDialog.py svn del Lib/lib-tk/tkFileDialog.py I will do the stub modules for these modules after the commit then, thanks. |
|
|
msg67000 - (view) |
Author: Georg Brandl (georg.brandl) *  |
Date: 2008-05-17 15:07 |
Committed modmerge patch in r63408. |
|
|
msg67010 - (view) |
Author: Guilherme Polo (gpolo) *  |
Date: 2008-05-17 19:01 |
Patch added for handling the merging of tkSimpleDialog into tkinter.simpledialog and tkFileDialog into tkinter.filedialog, specific for py3k. |
|
|
msg67012 - (view) |
Author: Georg Brandl (georg.brandl) *  |
Date: 2008-05-17 19:20 |
Handled Py3k branch in revs 63417 to 63423. Closing this issue. |
|
|
msg67099 - (view) |
Author: Brett Cannon (brett.cannon) *  |
Date: 2008-05-20 04:38 |
The changes in 2.6 need to be reverted, leaving only a note in the docs. |
|
|
msg67109 - (view) |
Author: Georg Brandl (georg.brandl) *  |
Date: 2008-05-20 07:27 |
Done in r63485-63491. |
|
|