panda3d/tests/gui/test_DirectButton.py

7 lines
132 B
Python

from direct.gui.DirectButton import DirectButton
def test_button_destroy():
btn = DirectButton(text="Test")
btn.destroy()