mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
check to make sure _Pmw is loaded before doing stuff with it
This commit is contained in:
parent
2f51e0ee10
commit
fe4531054d
@ -10,8 +10,10 @@ import sys
|
|||||||
|
|
||||||
# This is required by the ihooks.py module used by Squeeze (used by
|
# This is required by the ihooks.py module used by Squeeze (used by
|
||||||
# pandaSqueezer.py) so that Pmw initializes properly
|
# pandaSqueezer.py) so that Pmw initializes properly
|
||||||
sys.modules['_Pmw'].__name__ = '_Pmw'
|
if '_Pmw' in sys.modules:
|
||||||
|
sys.modules['_Pmw'].__name__ = '_Pmw'
|
||||||
|
|
||||||
|
if
|
||||||
__builtins__["tkroot"] = Pmw.initialise()
|
__builtins__["tkroot"] = Pmw.initialise()
|
||||||
|
|
||||||
def tkLoop(self):
|
def tkLoop(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user