wxPython name parameter of constructor

Help
lxpypg
2009-12-28
2013-05-22
  • lxpypg
    lxpypg
    2009-12-28

    Using the "name" parameter in the constructor generates a TypeError.

    self.pg = pg = wxpg.PropertyGridManager(parent = self, id = wx.ID_ANY, style=wxpg.PG_SPLITTER_AUTO_CENTER|wxpg.PG_AUTO_SORT|wxpg.PG_TOOLBAR, name = "propgrid1")

    gives the following error:

    TypeError: in method 'new_PropertyGridManager', expected argument 6 of type 'wxChar const *'

    I am using v1.4.9.3 of propertygrid with wxPython v2.8.10.1 and Python 2.6.2.

     
  • Jaakko Salli
    Jaakko Salli
    2009-12-28

    Thanks for reporting this. A fix has been applied in the SVN trunk.