View unanswered posts | View active topics It is currently Thu Mar 28, 2024 9:10 am



Post new topic Reply to topic  [ 2 posts ] 
 syntax problem 
Author Message

Joined: Sun Jun 27, 2010 10:12 pm
Posts: 1
Post syntax problem
I've been having a syntax problem

Traceback (most recent call last):
File "C:\Users\Public\OpenRPG\start_client.py", line 13, in <module>
import orpg.main
File "C:\Users\Public\OpenRPG\orpg\main.py", line 34, in <module>
from orpg.orpg_windows import *
File "C:\Users\Public\OpenRPG\orpg\orpg_windows.py", line 95
nbstyle |= theme_dict[tabtheme]
^
SyntaxError: invalid syntax



Can you help?


Sun Jun 27, 2010 10:21 pm
Profile

Joined: Thu Dec 10, 2009 6:37 am
Posts: 335
Post Re: syntax problem
Yes.
The line above that line is the one with the problem probably. You probably edited the above line which reads,

Code:
'slant&colorful': FNB.FNB_VC8|FNB.FNB_COLORFUL_TABS}


to remove the "FNB.FNB_COLORFUL_TABS" part which has been causing a failure of the program in wxPython 2.8.11.0 (it doesn't fail with wxPython 2.8.10.1 as mentioned here: viewtopic.php?f=4&t=353)

Anyway my guess is that you accidentally deleted the curly brace too or something. It should read,

Code:
'slant&colorful': FNB.FNB_VC8}


Wed Jun 30, 2010 12:32 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.