Skip to content

AprilArcus/vpython-wx

 
 

Repository files navigation

vpython-wx

Build Status

VPython 6 (vpython.org) based on the cross-platform library wxPython. It differs from the older VPython (5.74 and before) by eliminating nearly all platform-dependent code and by eliminating the threading associated with rendering.

The new version makes one essential change to the syntax of VPython programs. Now, an animation loop MUST contain a rate statement, which limits the number of loop iterations per second as before but also when appropriate (about 30 times per second) updates the 3D scene and handles mouse and keyboard events. Without a rate statement, the scene will not be updated until and unless the loop is completed.

The heart of the user-interface code (creating windows and handling events) is the file site-packages/visual_common/create_display.py. It is imported by visual/init.py and by /vis/init.py; the difference is that for convenience visual imports math and numpy, whereas vis doesn't.

Please report issues to the Github repository, or to the VPython forum at https://groups.google.com/forum/?fromgroups&hl=en#!forum/vpython-users.

About

VPython based on wxPython

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 64.9%
  • C++ 20.3%
  • C 14.5%
  • Other 0.3%