summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-08-20 03:47:14 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-08-20 03:47:14 (GMT)
commita45cacfc1c4fb2b7b1b5c74e1f6b56d6ca2c9e4c (patch)
treed6f8c90d17a1b690f15037493c348468cc14cd3f /Lib/lib-tk
parent8d7626c23f89cfed31b04a05c9ec2fba7e0a7bf4 (diff)
downloadcpython-a45cacfc1c4fb2b7b1b5c74e1f6b56d6ca2c9e4c.zip
cpython-a45cacfc1c4fb2b7b1b5c74e1f6b56d6ca2c9e4c.tar.gz
cpython-a45cacfc1c4fb2b7b1b5c74e1f6b56d6ca2c9e4c.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/tkFont.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/lib-tk/tkFont.py b/Lib/lib-tk/tkFont.py
index 06e0c98..3979e99 100644
--- a/Lib/lib-tk/tkFont.py
+++ b/Lib/lib-tk/tkFont.py
@@ -29,7 +29,7 @@ def nametofont(name):
"""Given the name of a tk named font, returns a Font representation.
"""
return Font(name=name, exists=True)
-
+
class Font:
"""Represents a named font.
@@ -50,7 +50,7 @@ class Font:
slant -- font slant: ROMAN, ITALIC
underline -- font underlining: false (0), true (1)
overstrike -- font strikeout: false (0), true (1)
-
+
"""
def _set(self, kw):
@@ -95,7 +95,7 @@ class Font:
root.tk.call("font", "configure", self.name, *font)
else:
# create new font (raises TclError if the font exists)
- root.tk.call("font", "create", self.name, *font)
+ root.tk.call("font", "create", self.name, *font)
self.delete_font = True
# backlinks!
self._root = root
@@ -120,7 +120,7 @@ class Font:
self._call("font", "delete", self.name)
except (AttributeError, Tkinter.TclError):
pass
-
+
def copy(self):
"Return a distinct copy of the current font"
return Font(self._root, **self.actual())