mirror of
https://github.com/python/cpython.git
synced 2025-09-17 14:16:02 +00:00
#7092: Fix additional "-3" warnings in the idlelib package, and convert to absolute imports.
This commit is contained in:
parent
f28dd0d1bf
commit
d630c04ab1
37 changed files with 169 additions and 149 deletions
|
@ -4,9 +4,9 @@
|
|||
|
||||
from Tkinter import *
|
||||
import os
|
||||
import os.path
|
||||
import textView
|
||||
import idlever
|
||||
|
||||
from idlelib import textView
|
||||
from idlelib import idlever
|
||||
|
||||
class AboutDialog(Toplevel):
|
||||
"""Modal about dialog for idle
|
||||
|
@ -144,7 +144,7 @@ if __name__ == '__main__':
|
|||
# test the dialog
|
||||
root = Tk()
|
||||
def run():
|
||||
import aboutDialog
|
||||
from idlelib import aboutDialog
|
||||
aboutDialog.AboutDialog(root, 'About')
|
||||
Button(root, text='Dialog', command=run).pack()
|
||||
root.mainloop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue