reportlab/graphics/renderbase.py
changeset 2401 cd68d7a84d05
parent 2360 0fbaee224de1
child 2544 a6b9aa99b3c3
--- a/reportlab/graphics/renderbase.py	Tue Oct 19 17:52:20 2004 +0000
+++ b/reportlab/graphics/renderbase.py	Wed Oct 20 19:27:07 2004 +0000
@@ -118,6 +118,13 @@
         "returns the current transformation matrix at this point"""
         return self.__combined[-1]['ctm']
 
+    def __getitem__(self,key):
+        "returns the complete graphics state value of key at this point"
+        return self.__combined[-1][key]
+
+    def __setitem__(self,key,value):
+        "sets the complete graphics state value of key to value"
+        self.__combined[-1][key] = value
 
 def testStateTracker():
     print 'Testing state tracker'