Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in python exported code when adding PropertyGrid OnChange event #250

Closed
rjdza opened this issue Oct 27, 2016 · 1 comment
Closed
Assignees
Milestone

Comments

@rjdza
Copy link

rjdza commented Oct 27, 2016

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.

@rjdza
Copy link
Author

rjdza commented Oct 27, 2016

I should have mentioned that I experienced this error in v3.5 RC1 and v3.5.1 RC1.

@patlkli patlkli self-assigned this Oct 27, 2016
@patlkli patlkli added this to the 3.6.1 milestone Oct 28, 2016
@patlkli patlkli modified the milestones: 3.6.0, 3.6.1 Dec 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants