#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    67
    Rep Power
    11

    Question Toplevel Problem...


    When I run this code:
    Code:
    def help(self):        
            self.help = Toplevel(maxsize=(1000, 100))
            self.help.title("Help/About")
        
            self.alabel = Label(help, text="About"
            self.alabel.grid(row=0, column=0)
            self.hlabel = Label(help, text="Help"
            self.hlabel.grid(row=2, column=0)                    
    
            self.amsg = Message(help, text="This program was written in Python abd Tkinter by Evan Patterson. Hopefully you will find this program useful.")
            self.amsg.grid(row=1, column=0)
            self.hmsg = Message(help, text="This program is really simple to use. Use the chackbuttons to select which stages you want to include. Normally, it asks you Latin and you must give it English, but if you want it the other way around, check the 'Diplay in English' box."
            self.hmsg.grid(row=3, column=0)
            self.hclose = Button(help, text="Close", command=help.destroy)
            self.hclose.grid(row=4, column=0)
    It says: Failed to run script - syntax error - invalid syntax
    I don't know why, the code looks fine to me... Does anyone know whats wrong?
    Thanks.
    Before you criticize someone, walk a mile in their shoes, that way when you do criticize them, you're a mile away and you have their shoes!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    133
    Rep Power
    11
    What about the missing parentheses at the end of line 5, 7 and 12?
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    67
    Rep Power
    11
    I fixed that problem after a posted but it didn't seem to help.
  6. #4
  7. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    67
    Rep Power
    11
    OK, problem solved.
    Turned out that there were more missing parenthesis.
    Thanks.

IMN logo majestic logo threadwatch logo seochat tools logo