check to make sure _Pmw is loaded before doing stuff with it

This commit is contained in:
Chris Brunner 2010-07-06 21:58:01 +00:00
parent 2f51e0ee10
commit fe4531054d

View File

@ -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):