fix: Display error when type in some Language, ex, Traditional Chinese

This commit is contained in:
Ting-Jun Wang 2021-04-24 21:50:54 +08:00
parent 142e32bd6e
commit e356e87472
Signed by: snsd0805
GPG Key ID: 8DB0D22BC1217D33

View File

@ -30,6 +30,10 @@ class MainForm(npyscreen.FormBaseNew):
value="Hello world"
)
# avoid some language input error
# ex. Chinese
self.input.entry_widget.when_value_edited = lambda: self.DISPLAY()
self.output = self.add(EditBox, name="Output (to)", footer=self.parentApp.translator.outputLanguage,
max_width=x//2-5, max_height=y//3,
relx=x//2+2, rely=3,