RPGObjects.com
http://www.rpgobjects.com/forum/

syntax problem
http://www.rpgobjects.com/forum/viewtopic.php?f=4&t=380
Page 1 of 1

Author:  desh182 [ Sun Jun 27, 2010 10:21 pm ]
Post subject:  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?

Author:  davidbyron [ Wed Jun 30, 2010 12:32 am ]
Post subject:  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}

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/