Skip to content

Commit 2c2d0e0

Browse files
committed
Fixed previous bug "fix", #5
1 parent 9f8e53f commit 2c2d0e0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tktools.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def clear_text(self, *args, **kwargs):
7373
self.widget.delete(*args, **kwargs)
7474
def set_text(self, text, *args, **kwargs):
7575
## Clears and sets the text
76-
self.clear_text(0.0)
77-
self.widget.insert(0.0, text, args, kwargs)
76+
self.clear_text(0.0, 'end')
77+
self.widget.insert(0.0, text)
7878
def get_text(self, *args, **kwargs):
7979
## Gets the text from the text widget
8080
text = self.widget.get(*args, **kwargs)
@@ -171,4 +171,5 @@ def config_label(self, label_name, *args, **kwargs):
171171

172172

173173
if __name__=='__main__':
174-
print('Run main.py instead of this!')
174+
print('Run main.py instead of this! Starting main.py anyway...')
175+
import main

0 commit comments

Comments
 (0)