--- Pmw.1.3.2/src/Pmw/Pmw_1_3/lib/PmwMenuBar.py.debug 2007-08-08 04:55:54.000000000 +0900 +++ Pmw.1.3.2/src/Pmw/Pmw_1_3/lib/PmwMenuBar.py 2009-05-13 18:59:22.000000000 +0900 @@ -187,7 +187,9 @@ menubutton = self.component(menuName + '-button') underline = string.atoi(str(menubutton.cget('underline'))) if underline != -1: - label = str(menubutton.cget(textKey)) + label = menubutton.cget(textKey) + if type(label) != types.UnicodeType: + label = str(label) if underline < len(label): hotkey = string.lower(label[underline]) if hotkey not in hotkeyList: @@ -201,7 +203,9 @@ underline = string.atoi( str(menu.entrycget(item, 'underline'))) if underline != -1: - label = str(menu.entrycget(item, textKey)) + label = menu.entrycget(item, textKey) + if type(label) != types.UnicodeType: + label = str(label) if underline < len(label): hotkey = string.lower(label[underline]) if hotkey not in hotkeyList: