November 9th, 2004, 11:06 PM
Join Date: Jun 2004
Time spent in forums: < 1 sec
Reputation Power: 0
Changing fonts and such in ScrolledText class
I have a ScrolledText object in my program, which displays text read in from a text file. I want to be able to change the font for the displayed text. I also want to make it so that some of the text, when clicked upon, creates a pop up window. I know how to create a new window, but I don't know how to link text to the window. Here is the code that I am using.
#creates tutorial box
self.tutorial = ScrolledText(root)
self.tutorial.config(height = 40, width = 40)
fileName = 'v1.txt'
readFile = open(fileName, 'r')
allTheText = readFile.readlines()
for i in range(len(allTheText)):
Any suggestions would be very appreciated! Thank you in advance! :-)