mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -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
|
||||
# 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()
|
||||
|
||||
def tkLoop(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user