开发者

PyGTK and visual-python

开发者 https://www.devze.com 2023-01-30 20:47 出处:网络
I\'m developing an application with PyGTK that will make use of visual-python\'s 3d drawings and animations, but I can\'t get both libraries to work together: they either hung up when I close the Gtk

I'm developing an application with PyGTK that will make use of visual-python's 3d drawings and animations, but I can't get both libraries to work together: they either hung up when I close the Gtk window or they get stuck when I run the application.

I've tried with threads and they run side-by-side, but when I close visual-python's window this kills python's interpreter, raising a Segmentation Fault.

Has anyone been able to use visual-python fr开发者_运维技巧om a PyGtk app?


This is a non-trivial problem given the way that VPython wants to work, but there is an example in the contributed programs section of the VPython web site that shows how to embed VPython into a wxPython application, so perhaps you can look over that code and determine what you would need to do to perform the same magic in PyGTK.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号