| 183 | texbut.config(command=partial(SetTexture, actor, atext, self.tkrw)) |
| 184 | |
| 185 | def DoIt(self): |
| 186 | self.SetUp() |
| 187 | self.tkrw.Render() |
| 188 | self.root.update() |
| 189 | # If you want to interact and use the sliders etc, |
| 190 | # uncomment the following line. |
| 191 | #self.root.mainloop() |
| 192 | img_file = "squadViewer.png" |
| 193 | Testing.compareImage(self.tkrw.GetRenderWindow(), |
| 194 | Testing.getAbsImagePath(img_file)) |
| 195 | Testing.interact() |
| 196 | self.tkrw.destroy() |
| 197 | |
| 198 | if __name__ == '__main__': |
| 199 | cases = [(SuperQuadricViewer, 'DoIt')] |