View Single Post
Old Apr 25th, 2008, 10:34 PM   #11
Adam.K
Newbie
 
Join Date: Apr 2008
Posts: 11
Rep Power: 0 Adam.K is on a distinguished road
Re: I am looking for

Basically As we all Know I have a text (notepad) based project and I cant seem to change the font, thanks to your guys help i have been able to successfully import the font.py module and i have been able to select the font so that :

def Font(self):
import Font
import Tix

root = Tix.Tk( )
Font = Font.askChooseFont( root )

if Font:
print Font


Now under the part where it sais if Font
print Font
It should have something where it changes the current font of my text program from say ariel to webdings or what ever the user changes, along with size and color (if chosen) i have tried a million things and nothing works, i have even looked at the IDE code for python and still cant get it to work.


Its like changing the font of either selected text or text in general is impossible. what am i doing wrong?
Adam.K is offline   Reply With Quote