We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 818ed57 commit a0aa7deCopy full SHA for a0aa7de
direct/src/gui/DirectGuiBase.py
@@ -81,6 +81,7 @@
81
82
from panda3d.core import *
83
from direct.showbase import ShowBaseGlobal
84
+from direct.showbase import ShowBase
85
from . import DirectGuiGlobals as DGG
86
from .OnscreenText import *
87
from .OnscreenGeom import *
tests/gui/test_DirectButton.py
@@ -0,0 +1,6 @@
1
+from direct.gui.DirectButton import DirectButton
2
+
3
4
+def test_button_destroy():
5
+ btn = DirectButton(text="Test")
6
+ btn.destroy()
tests/gui/test_DirectEntry.py
@@ -3,6 +3,11 @@
import sys
+def test_entry_destroy():
7
+ entry = DirectEntry()
8
+ entry.destroy()
9
10
11
def test_entry_get():
12
entry = DirectEntry()
13
assert isinstance(entry.get(), str)
0 commit comments