summaryrefslogtreecommitdiff
path: root/urwid/graphics.py
diff options
context:
space:
mode:
authorian <none@none>2007-01-26 16:13:11 +0000
committerian <none@none>2007-01-26 16:13:11 +0000
commitdd727183ebdbc4a6034fa032cc0cf1aecbed8fa1 (patch)
treedc158c8d1912a1f03cc57a7086323ba494478d4d /urwid/graphics.py
parentbb0631c371feae44582047bbfef08574dc36d363 (diff)
downloadurwid-dd727183ebdbc4a6034fa032cc0cf1aecbed8fa1.tar.gz
new CompositeCanvas, CanvasCache classes. Drop python 2.1 support
--HG-- rename : urwid/utable.py => urwid/str_util.py extra : convert_revision : 5631e8cfea10000d6e63009a3cfc02513b75e8ad
Diffstat (limited to 'urwid/graphics.py')
-rwxr-xr-xurwid/graphics.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/urwid/graphics.py b/urwid/graphics.py
index 01d2057..b939657 100755
--- a/urwid/graphics.py
+++ b/urwid/graphics.py
@@ -2,7 +2,7 @@
# -* coding: utf-8 -*-
#
# Urwid graphics widgets
-# Copyright (C) 2004-2006 Ian Ward
+# Copyright (C) 2004-2007 Ian Ward
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@ -27,8 +27,6 @@ from canvas import *
from widget import *
from escape import utf8decode
-try: True # old python?
-except: False, True = 0, 1
class BigText(FixedWidget):
def __init__(self, markup, font):
@@ -76,6 +74,7 @@ class BigText(FixedWidget):
# ignore invalid characters
continue
c = self.font.render(ch)
+ c = CompositeCanvas(c)
c.fill_attr(a)
o.append(c)
cols += width