[Tutor] A better way to do it.

Alan Gauld alan.gauld at freenet.co.uk
Sun Dec 26 15:53:09 CET 2004


> --- "Jacob S." <keridee at jayco.net> wrote:
> > I have a couple of questions.
> > 1) How do I change the title of the window?

My tutors case study shows this, the critical but of code is here:
class GrammarApp(Frame):
  def __init__(self, parent=0):
    Frame.__init__(self,parent)
    self.type = 2    # create variable with default value
    self.master.title('Grammar counter')
    self.buildUI()Note the second last line.HTH,Alan GAuthor of the
Learn to Program web tutorhttp://www.freenetpages.co.uk/hp/alan.gauld



More information about the Tutor mailing list