[PythonCAD] TextBlock bug

Art Haas ahaas at airmail.net
Fri Sep 26 08:29:09 EDT 2003


On Thu, Sep 25, 2003 at 10:23:02PM +0200, Dave Coventry wrote:
> Hi Art,
> 
> I've tried to get going in Pythoncad, but I'm getting the error
> mentioned by someone in the Pythoncad archives, namely the MRO error in
> the TextBlock class.
> 

Hi.

I'm mailing this patch to the list so it will be archived. I replied
directly in an earlier mail.

Also I'll be upgrading to Python 2.3.1 shortly from my current CVS
built Python 2.2.3+ release. For the time being there are no plans to
require Python 2.3 as the minimum Python release for running PythonCAD.

Index: Generic/text.py
===================================================================
--- Generic/text.py	(revision 621)
+++ Generic/text.py	(revision 635)
@@ -526,7 +526,7 @@
 # objects in an image.
 #
 
-class TextBlock(object, TextFormat):
+class TextBlock(TextFormat):
     """A class for storing text in an image
 
 The TextBlock class is derived from the TextFormat class, so it

-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822



More information about the PythonCAD mailing list