mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-11-01 09:17:54 +00:00
19 lines
522 B
Python
19 lines
522 B
Python
|
from SCTerminal import SCTerminal
|
||
|
from otp.otpbase.OTPLocalizer import CustomSCStrings
|
||
|
SCCustomMsgEvent = 'SCCustomMsg'
|
||
|
|
||
|
def decodeSCCustomMsg(textId):
|
||
|
return CustomSCStrings.get(textId, None)
|
||
|
|
||
|
|
||
|
class SCCustomTerminal(SCTerminal):
|
||
|
|
||
|
def __init__(self, textId):
|
||
|
SCTerminal.__init__(self)
|
||
|
self.textId = textId
|
||
|
self.text = CustomSCStrings[self.textId]
|
||
|
|
||
|
def handleSelect(self):
|
||
|
SCTerminal.handleSelect(self)
|
||
|
messenger.send(self.getEventName(SCCustomMsgEvent), [self.textId])
|