LUIHorizontalLayout.py 642 B

123456789101112131415161718192021
  1. """
  2. This is a wrapper file. It contains no actual implementation
  3. """
  4. from panda3d.lui import LUIHorizontalLayout as _LUIHorizontalLayout
  5. from LUIInitialState import LUIInitialState
  6. __all__ = ["LUIHorizontalLayout"]
  7. class LUIHorizontalLayout(_LUIHorizontalLayout):
  8. """ This is a wrapper class for the C++ LUIHorizontalLayout 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. _LUIHorizontalLayout.__init__(self, parent, spacing)
  13. LUIInitialState.init(self, kwargs)