Make reindent.py happy (convert everything to 4-space indents!).

This commit is contained in:
Fred Drake 2000-10-23 18:31:14 +00:00
parent 16f6329e61
commit d038ca830f
9 changed files with 246 additions and 249 deletions

View file

@ -8,7 +8,7 @@
#
# FIXME: should add 'displayof' option where relevant (actual, families,
# measure, and metrics)
#
#
# Copyright (c) Secret Labs AB 1998.
#
# info@pythonware.com
@ -52,10 +52,10 @@ class Font:
return tuple(options)
def _get(self, args):
options = []
for k in args:
options.append("-"+k)
return tuple(options)
options = []
for k in args:
options.append("-"+k)
return tuple(options)
def _mkdict(self, args):
options = {}
@ -117,7 +117,7 @@ class Font:
)
configure = config
def measure(self, text):
"Return text width"
return string.atoi(self._call("font", "measure", self.name, text))
@ -143,7 +143,7 @@ def families(root=None):
"Get font families (as a tuple)"
if not root:
root = Tkinter._default_root
return root.tk.splitlist(root.tk.call("font", "families"))
return root.tk.splitlist(root.tk.call("font", "families"))
def names(root=None):
"Get names of defined fonts (as a tuple)"
@ -153,7 +153,7 @@ def names(root=None):
# --------------------------------------------------------------------
# test stuff
if __name__ == "__main__":
root = Tkinter.Tk()
@ -186,7 +186,7 @@ if __name__ == "__main__":
fb = Font(font=w["font"]).copy()
fb.config(weight=BOLD)
w.config(font=fb)
Tkinter.mainloop()