You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding an OnPropertyGridChanged event (PropGridChanged) I get the error "global name 'NULL' is not defined" when including the python export file in my project.
The offending line seems to be the NULL in the generated code: self.pgSettings.Bind( pg.EVT_PG_CHANGED, self.PropGridChanged, NULL, this)
Everything seems to work as expected when I remove the NULL, this portion and just use: self.pgSettings.Bind( pg.EVT_PG_CHANGED, self.PropGridChanged)
In the above, pgSettings is a wxPropertyGrid.
The PropertyGridManager event creates the code without the NULL, this portion.
I've not included any additional code as this seems to be a fairly simple problem and resolution. Please let me know if anything more is required.
The text was updated successfully, but these errors were encountered:
I am using Python 2.7.12 on Windows 10.
When adding an OnPropertyGridChanged event (PropGridChanged) I get the error "global name 'NULL' is not defined" when including the python export file in my project.
The offending line seems to be the
NULL
in the generated code:self.pgSettings.Bind( pg.EVT_PG_CHANGED, self.PropGridChanged, NULL, this)
Everything seems to work as expected when I remove the
NULL, this
portion and just use:self.pgSettings.Bind( pg.EVT_PG_CHANGED, self.PropGridChanged)
In the above,
pgSettings
is a wxPropertyGrid.The PropertyGridManager event creates the code without the
NULL, this
portion.I've not included any additional code as this seems to be a fairly simple problem and resolution. Please let me know if anything more is required.
The text was updated successfully, but these errors were encountered: