(self)
| 237 | ren.AddActor(actor) |
| 238 | |
| 239 | def DoIt(self): |
| 240 | self.SetUp() |
| 241 | self.tkrw.Render() |
| 242 | self.root.update() |
| 243 | # If you want to interact and use the sliders etc, |
| 244 | # uncomment the following line. |
| 245 | #self.root.mainloop() |
| 246 | img_file = "TestTextActor3D.png" |
| 247 | Testing.compareImage(self.tkrw.GetRenderWindow(), |
| 248 | Testing.getAbsImagePath(img_file)) |
| 249 | Testing.interact() |
| 250 | self.tkrw.destroy() |
| 251 | |
| 252 | if __name__ == '__main__': |
| 253 | cases = [(TestTextActor3DViewer, 'DoIt')] |