Fix: EntscheidungsDialog für Python3 angepasst

This commit is contained in:
Daniel Spittank 2017-02-05 13:02:21 +01:00
parent 555cf013ae
commit f9d200a7d6

View file

@ -137,7 +137,7 @@ class EntscheidungsDialog(Dialog):
androide.dialogSetNegativeButtonText(self.text2) androide.dialogSetNegativeButtonText(self.text2)
androide.dialogShow() androide.dialogShow()
tmpErg = androide.dialogGetResponse().result tmpErg = androide.dialogGetResponse().result
if tmpErg.has_key('which'): if 'which' in tmpErg:
if tmpErg['which'] == 'positive': if tmpErg['which'] == 'positive':
self.ergebnis=1 self.ergebnis=1
elif tmpErg['which'] == 'negative': elif tmpErg['which'] == 'negative':