From: Michael S. <m-s...@us...> - 2007-08-01 09:52:26
|
Salut, I have a problem with creating different instances of the pyx.document class: I would like to have a "slides" class which writes out a number of slides in different ways (for beamer presentations, for handouts, with different sizes). Unfortunately, when I create several pyx.document instances, they are all the same (having the same memory address)! See the enclosed minimal example. Is there an explanation for this behaviour? # ------------------------- from pyx import * class slides: def document(self): d = document.document() return d s = slides() for i in range(4): print s.document() # ------------------------- Michael. |