summaryrefslogtreecommitdiff
path: root/Lib/lib-tk
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/lib-tk')
-rwxr-xr-xLib/lib-tk/Tix.py16
-rw-r--r--Lib/lib-tk/Tkinter.py2
-rw-r--r--Lib/lib-tk/tkFileDialog.py11
3 files changed, 14 insertions, 15 deletions
diff --git a/Lib/lib-tk/Tix.py b/Lib/lib-tk/Tix.py
index f19bf97799..eb349ddea5 100755
--- a/Lib/lib-tk/Tix.py
+++ b/Lib/lib-tk/Tix.py
@@ -1104,15 +1104,15 @@ class ListNoteBook(TixWidget):
return self.subwidget_list[name]
def page(self, name):
- return self.subwidget(name)
+ return self.subwidget(name)
def pages(self):
- # Can't call subwidgets_all directly because we don't want .nbframe
- names = self.tk.split(self.tk.call(self._w, 'pages'))
- ret = []
- for x in names:
- ret.append(self.subwidget(x))
- return ret
+ # Can't call subwidgets_all directly because we don't want .nbframe
+ names = self.tk.split(self.tk.call(self._w, 'pages'))
+ ret = []
+ for x in names:
+ ret.append(self.subwidget(x))
+ return ret
def raise_page(self, name): # raise is a python keyword
self.tk.call(self._w, 'raise', name)
@@ -1737,7 +1737,7 @@ class _dummyNoteBookFrame(NoteBookFrame, TixSubWidget):
class _dummyPanedWindow(PanedWindow, TixSubWidget):
def __init__(self, master, name, destroy_physically=1):
- TixSubWidget.__init__(self, master, name, destroy_physically)
+ TixSubWidget.__init__(self, master, name, destroy_physically)
########################
### Utility Routines ###
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index 5ad065da2d..3ffd2dfad0 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -1557,7 +1557,7 @@ class Tk(Misc, Wm):
self._tkloaded = 0
# to avoid recursions in the getattr code in case of failure, we
# ensure that self.tk is always _something_.
- self.tk = None
+ self.tk = None
if baseName is None:
import sys, os
baseName = os.path.basename(sys.argv[0])
diff --git a/Lib/lib-tk/tkFileDialog.py b/Lib/lib-tk/tkFileDialog.py
index c2c661cbad..a35feedc50 100644
--- a/Lib/lib-tk/tkFileDialog.py
+++ b/Lib/lib-tk/tkFileDialog.py
@@ -131,8 +131,8 @@ def asksaveasfilename(**options):
def askopenfilenames(**options):
"""Ask for multiple filenames to open
-
- Returns a list of filenames or empty list if
+
+ Returns a list of filenames or empty list if
cancel button selected
"""
options["multiple"]=1
@@ -151,8 +151,8 @@ def askopenfile(mode = "r", **options):
def askopenfiles(mode = "r", **options):
"""Ask for multiple filenames and return the open file
objects
-
- returns a list of open file objects or an empty list if
+
+ returns a list of open file objects or an empty list if
cancel selected
"""
@@ -204,7 +204,7 @@ if __name__ == "__main__":
fp=open(openfilename,"r")
fp.close()
except:
- print "Could not open File: "
+ print "Could not open File: "
print sys.exc_info()[1]
print "open", openfilename.encode(enc)
@@ -213,4 +213,3 @@ if __name__ == "__main__":
saveasfilename=asksaveasfilename()
print "saveas", saveasfilename.encode(enc)
-