LUIVerticalLayout.py 628 B

123456789101112131415161718192021
  1. """
  2. This is a wrapper file. It contains no actual implementation
  3. """
  4. from panda3d.lui import LUIVerticalLayout as _LUIVerticalLayout
  5. from LUIInitialState import LUIInitialState
  6. __all__ = ["LUIVerticalLayout"]
  7. class LUIVerticalLayout(_LUIVerticalLayout):
  8. """ This is a wrapper class for the C++ LUIVerticalLayout class, to be
  9. able to use it in a more convenient way. It leverages LUIInitialState
  10. to be able to pass arbitrary keyword arguments. """
  11. def __init__(self, parent=None, spacing=0.0, **kwargs):
  12. _LUIVerticalLayout.__init__(self, parent, spacing)
  13. LUIInitialState.init(self, kwargs)