fix: Display error when type in some Language, ex, Traditional Chinese
This commit is contained in:
parent
142e32bd6e
commit
e356e87472
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user