Adauga functia de ".Clear()" in clientul tau.
Ce face aceasta functie?
O poti apela atunci cand vrei sa stergi un text instant dintr-un "editline".
De exemplu: Buton de "Clear" pentru un search box. Daca scrii "Acesta este un test" in editline si apoi apesi pe buton, textul va fi sters automat.
*Poze / Video:
*Link download / Code:
Deschidem ui.py si cautam in "class EditlLine" si in "class TextLine":
Code:
def SetText(self, text):
wndMgr.SetText(self.hWnd, text)
Adaugam:
Exemplu folosire:
Code:
self.hello_i_am_text.Clear()