|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
What about the missing parentheses at the end of line 5, 7 and 12?
|
|
#3
|
||||
|
||||
|
I fixed that problem after a posted but it didn't seem to help.
|
|
#4
|
||||
|
||||
|
OK, problem solved.
Turned out that there were more missing parenthesis. Thanks. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Toplevel Problem... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|