Dancing Hoskuld
Deity
I am still having problems with pain but it seems to finally be on the mend but it still makes concentration difficult. I have made the changes I think I need to make but I am getting this error
I can't see what is wrong where. The code I use for creating the first variable is almost the same as one which works but slightly faster and uses less memory.
In the one that works
In the one that doesn't
and yet the error is saying the first is class CyGInterfaceScreen {lvalue} and the second is CyGInterfaceScreen.
I had hoped that typing all that in here would have made it clear what I was doing wrong but I still can't see it
Code:
ArgumentError: Python argument types in
CyGInterfaceScreen.addMultilineText(CyGInterfaceScreen, str, unicode, int, float, int, float, CvPythonExtensions.WidgetTypes, int, int, int)
did not match C++ signature:
addMultilineText(class CyGInterfaceScreen {lvalue}, char const *, class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >, int, int, int, int, enum WidgetTypes, int, int, int)
I can't see what is wrong where. The code I use for creating the first variable is almost the same as one which works but slightly faster and uses less memory.
In the one that works
Code:
def __init__(self):
self.HELP_AREA_NAME = "CivicsScreenHelpArea"
def drawHelpText(self, iCivicOption):
szHelpAreaID = self.HELP_AREA_NAME + str(iCivicOption)
screen.addMultilineText(szHelpAreaID, szHelpText, fX+5, fY, self.HEADINGS_WIDTH-7, self.HELP_BOTTOM - fY-2, WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
Code:
def drawHelpText(self, iCivicOption):
szPanelIDHelpItem = "CivicStrategyText" + str(iCivicOption)
screen.addMultilineText(szPanelIDHelpItem, szHelpText, fX+5, fY, self.HEADINGS_WIDTH-7, self.HELP_BOTTOM - fY-2, WidgetTypes.WIDGET_GENERAL, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
I had hoped that typing all that in here would have made it clear what I was doing wrong but I still can't see it
