wxPreferencesEditor event handling

There is some reason why wxPreferencesEditor is not inherited from wxFrame like it’s on original C++ code?

I just have an opencv camera preview in preferences page (like Skype one) and can’t destroy it after page change or even preferences closing (it’s hided from C++ code and not closed).

Is there any solution for this?

Thanks!

It looks like ShowEvent is fired for panels, sorry :slight_smile:

···

вторник, 9 февраля 2016 г., 5:00:37 UTC+5 пользователь Svyatoslav Bulbakha написал:

There is some reason why wxPreferencesEditor is not inherited from wxFrame like it’s on original C++ code?

I just have an opencv camera preview in preferences page (like Skype one) and can’t destroy it after page change or even preferences closing (it’s hided from C++ code and not closed).

Is there any solution for this?

Thanks!

Hmm, still have this issue. How to clean up resources if user will close preferences editor? Maybe we should move private GetWin() with this.m_win too?

···

вторник, 9 февраля 2016 г., 7:00:37 UTC+7 пользователь Svyatoslav Bulbakha написал:

There is some reason why wxPreferencesEditor is not inherited from wxFrame like it’s on original C++ code?

I just have an opencv camera preview in preferences page (like Skype one) and can’t destroy it after page change or even preferences closing (it’s hided from C++ code and not closed).

Is there any solution for this?

Thanks!

Sorry again. I’m able to bind events to page frame (self.GetParent().Bind).

···

вторник, 9 февраля 2016 г., 7:00:37 UTC+7 пользователь Svyatoslav Bulbakha написал:

There is some reason why wxPreferencesEditor is not inherited from wxFrame like it’s on original C++ code?

I just have an opencv camera preview in preferences page (like Skype one) and can’t destroy it after page change or even preferences closing (it’s hided from C++ code and not closed).

Is there any solution for this?

Thanks!

hello, could you post a snippet on how to add a page? I don’t understand how to create an instance of wx.StockPreferencesPage subclass

thank you in advance

···

On Tuesday, February 9, 2016 at 1:00:37 AM UTC+1, Svyatoslav Bulbakha wrote:

There is some reason why wxPreferencesEditor is not inherited from wxFrame like it’s on original C++ code?

I just have an opencv camera preview in preferences page (like Skype one) and can’t destroy it after page change or even preferences closing (it’s hided from C++ code and not closed).

Is there any solution for this?

Thanks!

Hi!

Thats just a minimal example of app with preferences: test.py · GitHub

And result is:

···

пятница, 11 марта 2016 г., 18:13:28 UTC+7 пользователь Marco Prosperi написал:

hello, could you post a snippet on how to add a page? I don’t understand how to create an instance of wx.StockPreferencesPage subclass

thank you in advance

On Tuesday, February 9, 2016 at 1:00:37 AM UTC+1, Svyatoslav Bulbakha wrote:

There is some reason why wxPreferencesEditor is not inherited from wxFrame like it’s on original C++ code?

I just have an opencv camera preview in preferences page (like Skype one) and can’t destroy it after page change or even preferences closing (it’s hided from C++ code and not closed).

Is there any solution for this?

Thanks!