dgui: fix critical regression introduced by 43a5719
This commit is contained in:
parent
818ed57894
commit
a0aa7de291
|
|
@ -81,6 +81,7 @@ __all__ = ['DirectGuiBase', 'DirectGuiWidget']
|
|||
|
||||
from panda3d.core import *
|
||||
from direct.showbase import ShowBaseGlobal
|
||||
from direct.showbase import ShowBase
|
||||
from . import DirectGuiGlobals as DGG
|
||||
from .OnscreenText import *
|
||||
from .OnscreenGeom import *
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
from direct.gui.DirectButton import DirectButton
|
||||
|
||||
|
||||
def test_button_destroy():
|
||||
btn = DirectButton(text="Test")
|
||||
btn.destroy()
|
||||
|
|
@ -3,6 +3,11 @@ from direct.gui.DirectEntry import DirectEntry
|
|||
import sys
|
||||
|
||||
|
||||
def test_entry_destroy():
|
||||
entry = DirectEntry()
|
||||
entry.destroy()
|
||||
|
||||
|
||||
def test_entry_get():
|
||||
entry = DirectEntry()
|
||||
assert isinstance(entry.get(), str)
|
||||
|
|
|
|||
Loading…
Reference in New Issue