0

I want to make a terminal with text widget in tkinter.I want that current path is written in Text widget and anyone cant erase it and on the other hand thay can write their command.

Bryan Oakley
  • 370,779
  • 53
  • 539
  • 685

1 Answers1

0

Set the state first to Normal and then change the state to Disabled following a text.insert for a text widget.

text.configure(state='Normal')
text.insert('TEXT')
text.configure(state='Disabled')
Yuuty
  • 123
  • 10