Untitled
unknown
plain_text
2 years ago
471 B
10
Indexable
class Textbox(CTkTextbox):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs, border_width=2)
def clear(self):
super().configure(state='normal')
super().delete("0.0", "end")
super().configure(state='disabled')
def clear2(self):
self.configure(state='normal') # enable writing
self.delete("0.0", "end") # delete all text
self.configure(state='disabled') # make it read-onlyEditor is loading...
Leave a Comment