VBase4_extensions.py 356 B

12345678910111213141516
  1. """
  2. Methods to extend functionality of the VBase4 class
  3. """
  4. from extension_native_helpers import *
  5. Dtool_PreloadDLL("libpanda")
  6. from libpanda import *
  7. def pPrintValues(self):
  8. """
  9. Pretty print
  10. """
  11. return "% 10.4f, % 10.4f, % 10.4f, % 10.4f" % (self[0], self[1], self[2], self[3])
  12. Dtool_funcToMethod(pPrintValues, VBase4)
  13. del pPrintValues