text-widget

Add internal padding to text widget on only one side

Add internal padding to text widget on only one side Question: So in my program I have a text widget and I want to add padding between the actual text and the side of the widget, but only on one side. You can do it on both sides by declaring the padx when the widget …

Total answers: 1

How to create a matplotlib pie chart with input from a tkinter text widget?

How to create a matplotlib pie chart with input from a tkinter text widget? Question: I want to have a GUI with a tkinter text widget where the user can input values. After hitting the "Create!" button I want the program to open a new window and use the entered values to create a matplotlib …

Total answers: 1

How to clear/delete the contents of a Tkinter Text widget?

How to clear/delete the contents of a Tkinter Text widget? Question: I am writing a Python program in TKinter on Ubuntu to import and print the name of files from particular folder in Text widget. It is just adding filenames to the previous filnames in the Text widget, but I want to clear it first, …

Total answers: 8