#1 wxStaticText (any text property) and apostrophe


I create a wxApp.
In the frame I add a wxStaticText.

I fill in the label of this wxStaticText with: main d'oeuvre

I save the design of the frame.

I relaunch the designer, and there I got an error; here is
the traceback:

Traceback (innermost last):
File "Editor.py", line 526, in OnDesigner
File "Editor.py", line 359, in showDesigner
File "Designer.py", line 336, in refreshCtrl
self.initObjectsAndCompanions(ctrls.creators[1:], props, events)
File "Designer.py", line 114, in initObjectsAndCompanions
ctrl.comp_name, ctrl.params)
File "Designer.py", line 354, in loadControl
args = self.setupArgs(ctrlName, params, dontEval)
File "Designer.py", line 231, in setupArgs
args = InspectableObjectCollectionView.setupArgs(self, ctrlName, params, dontEval)
File "Designer.py", line 57, in setupArgs
args[paramKey] = eval(params[paramKey])
File "<string>", line 0, in ?
NameError: label


  • Riaan Booysen

    Riaan Booysen - 2000-03-19

    Thanks, never knew about this one.

    To fix it in your code replace given code in methodparse.py lines 120 to 125:

    they were:

    if curchar == \'\"\':
    doublequotelevel = doublequotelevel + 1
    elif curchar == \"\'\":
    singlequotelevel = singlequotelevel + 1

    i = i + 1

    change to:

    if (not singlequotelevel) and curchar == \'\"\':
    doublequotelevel, i = incLevel(doublequotelevel, i)
    elif (not doublequotelevel) and curchar == \"\'\":
    singlequotelevel, i = incLevel(singlequotelevel, i)
    i = i + 1

  • Riaan Booysen

    Riaan Booysen - 2000-03-19
    • assigned_to: nobody --> riaan
    • summary: wxStaticText and apostrophe --> wxStaticText (any text property) and apostrophe
    • status: Error - status not found --> closed-fixed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks