You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm moving lib-tk to a tkinter package, I've sent a patch for this which
can be found at bpo-2775 but I started wrong (did a patch against py3k
directly).
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.
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.
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.
gpolo commented on May 16, 2008
gpolomannequin
MannequinAuthor
More actions
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
gpolo commented on May 17, 2008
gpolomannequin
MannequinAuthor
More actions
This new patch handles the merging of tkSimpleDialog into
tkinter.simpledialog and tkFileDialog into
tkinter.filedialog.
Activity
gpolo commentedon May 12, 2008
I'm moving lib-tk to a tkinter package, I've sent a patch for this which
can be found at bpo-2775 but I started wrong (did a patch against py3k
directly).
gpolo commentedon May 12, 2008
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.
gpolo commentedon May 16, 2008
New patch, this one does the following:
and tkSimpleDialog
What is missing now:
tkinter.filedialog, I believe this should be done using svn merge and
then correct the result a bit.
birkenfeld commentedon May 16, 2008
Committed step 2 patch as r63376.
gpolo commentedon May 16, 2008
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.
gpolo commentedon May 16, 2008
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
gpolo commentedon May 17, 2008
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.
birkenfeld commentedon May 17, 2008
Committed modmerge patch in r63408.
gpolo commentedon May 17, 2008
Patch added for handling the merging of tkSimpleDialog into
tkinter.simpledialog and tkFileDialog into tkinter.filedialog, specific
for py3k.
birkenfeld commentedon May 17, 2008
Handled Py3k branch in revs 63417 to 63423. Closing this issue.
brettcannon commentedon May 20, 2008
The changes in 2.6 need to be reverted, leaving only a note in the docs.
birkenfeld commentedon May 20, 2008
Done in r63485-63491.