I don't know if the order of inputMethods matters, but none will always be at the end with the following change.
35 def getAvailableInputMethods(self): 36 - inputMethods = subprocess.check_output(['im-config', '-l']).decode().split() 37 - return sorted(inputMethods) 38 + inputMethods = sorted(subprocess.check_output(['im-config', '-l']).decode().split()) 39 + inputMethods.append('none') 40 + return inputMethods
I don't know if the order of inputMethods matters, but none will always be at the end with the following change.
35 def getAvailableInp utMethods( self): check_output( ['im-config' , '-l']). decode( ).split( ) inputMethods) subprocess. check_output( ['im-config' , '-l']). decode( ).split( )) append( 'none')
36 - inputMethods = subprocess.
37 - return sorted(
38 + inputMethods = sorted(
39 + inputMethods.
40 + return inputMethods