mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-30 07:02:48 -06:00
23 lines
615 B
Python
23 lines
615 B
Python
|
from SCCustomTerminal import SCCustomTerminal
|
||
|
from SCMenu import SCMenu
|
||
|
from otp.otpbase.OTPLocalizer import CustomSCStrings
|
||
|
|
||
|
|
||
|
class SCCustomMenu(SCMenu):
|
||
|
|
||
|
def __init__(self):
|
||
|
SCMenu.__init__(self)
|
||
|
|
||
|
self.accept('customMessagesChanged', self.__customMessagesChanged)
|
||
|
self.__customMessagesChanged()
|
||
|
|
||
|
def __customMessagesChanged(self):
|
||
|
self.clearMenu()
|
||
|
try:
|
||
|
lt = base.localAvatar
|
||
|
except:
|
||
|
return
|
||
|
for msgIndex in lt.customMessages:
|
||
|
if msgIndex in CustomSCStrings:
|
||
|
self.append(SCCustomTerminal(msgIndex))
|