Welcome folks today in this blog post we will be building a notepad
using scrolledtext
widget in tkinter using python. All the full source code of the application is given below.
Get Started
In order to get started you need to make an app.py
file and copy paste the following code
app.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from tkinter import * from tkinter import scrolledtext window = Tk() window.title("Welcome to Coding Shiksha App") window.geometry('500x500') txt = scrolledtext.ScrolledText(window,width=59,height=30) txt.grid(column=0,row=0) window.mainloop() |
And now if you execute the python
script by typing the below command as shown below
python app.py