Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old September 2nd, 2003, 09:23 PM
Baltor's Avatar
Baltor Baltor is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 67 Baltor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m
Reputation Power: 5
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!

Reply With Quote
  #2  
Old September 3rd, 2003, 06:43 AM
percivall percivall is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 133 percivall User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
What about the missing parentheses at the end of line 5, 7 and 12?

Reply With Quote
  #3  
Old September 3rd, 2003, 06:52 PM
Baltor's Avatar
Baltor Baltor is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 67 Baltor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m
Reputation Power: 5
I fixed that problem after a posted but it didn't seem to help.

Reply With Quote
  #4  
Old September 3rd, 2003, 06:59 PM
Baltor's Avatar
Baltor Baltor is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 67 Baltor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m
Reputation Power: 5
OK, problem solved.
Turned out that there were more missing parenthesis.
Thanks.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Toplevel Problem...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway