Skip to content

Commit a9dbfe4

Browse files
committed
Use setText() instead of type() for EditText's to delete previous content
1 parent 61ca962 commit a9dbfe4

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/com/dtmilano/android/culebron.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
'''
2121
import time
2222

23-
__version__ = '10.5.1'
23+
__version__ = '10.5.3'
2424

2525
import sys
2626
import threading
@@ -579,7 +579,11 @@ def getViewContainingPointAndTouch(self, x, y):
579579
text = tkSimpleDialog.askstring(title, "Enter text to type into this field", **kwargs)
580580
self.canvas.focus_set()
581581
if text:
582-
v.type(text)
582+
# This is deleting the existing text, which should be asked in the dialog, but I would have to implement
583+
# the dialog myself
584+
v.setText(text)
585+
# This is not deleting the text, so appending if there's something
586+
#v.type(text)
583587
self.printOperation(v, Operation.TYPE, text)
584588
else:
585589
self.hideVignette()

0 commit comments

Comments
 (0)