Update ctk_textbox.py

There were no options to delete and get the text. --Updated
This commit is contained in:
Jalal096 2022-11-12 21:52:43 +05:30 committed by GitHub
parent 06332a1061
commit 6c8fc8c5bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,6 +132,13 @@ class CTkTextbox(CTkBaseClass):
def tag_remove(self, *args, **kwargs):
return self.textbox.tag_remove(*args, **kwargs)
def delete(self, *args, **kwargs):
self.textbox.delete(*args, **kwargs)
def get(self, index1, index2=None):
"""Return the text from INDEX1 to INDEX2 (not included)."""
return self.tk.call(self.textbox, 'get', index1, index2)
def configure(self, require_redraw=False, **kwargs):
if "fg_color" in kwargs: