Hi,
I am trying to convert a canvas into a postscript file, which I can do with few lines of code, for example:
self._wCanvas = Canvas(self._wControlFrame,
width=210, height=400)
self._wCanvas.create_text(210, 100, text="Hello")
self._wCanvas.pack()
self._wControlFrame.update()
self._postscript = self._wScreen._wCanvas.postscript()
..
..
The problem is that I have to pack the canvas to create a postscript file. I want to create the postscript without packing the canvas (basically not showing the canvas at all). I have tried unpacking it after the postscript command but I still see the canvas for a second. If you have any suggestions please let me know.
I am trying to convert a canvas into a postscript file, which I can do with few lines of code, for example:
self._wCanvas = Canvas(self._wControlFrame,
width=210, height=400)
self._wCanvas.create_text(210, 100, text="Hello")
self._wCanvas.pack()
self._wControlFrame.update()
self._postscript = self._wScreen._wCanvas.postscript()
..
..
The problem is that I have to pack the canvas to create a postscript file. I want to create the postscript without packing the canvas (basically not showing the canvas at all). I have tried unpacking it after the postscript command but I still see the canvas for a second. If you have any suggestions please let me know.