Phoenix vs. Classic Notebook Issue

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Phoenix vs. Classic Notebook Issue

jeff.kueng
When I run the attached script on Linux using wxpython Phoenix 4.0.1, I get the traceback error: "RuntimeError: wrapped C/C++ object of type NotebookDemo has been deleted" (attached) when I close the GUI frame if I change tabs before I close; where as, if I don't change tabs, or if I change back to "TabOne" before closing the GUI frame, I don't get an error. When I run the same script on a MACOSX running wxpython 3.0.0 I don't get a traceback error if I change tabs or not before closing.

Is there something I'm doing wrong, or is this a bug in Phoenix 4.0.1?

Thanks,
Jeff

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

notebook.py (3K) Download Attachment
Traceback_Error.txt (381 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Phoenix vs. Classic Notebook Issue

Mario Lacunza-2
Ubuntu 18.04 your script runs fine with no errors.

Saludos / Best regards

Mario Lacunza
Email:: [hidden email]
Personal Website:: http://www.lacunza.biz/
Hosting:: http://mlv-host.com/
Skype: mlacunzav

Lima - Peru


El mar., 2 de oct. de 2018 a la(s) 13:56, <[hidden email]> escribió:
When I run the attached script on Linux using wxpython Phoenix 4.0.1, I get the traceback error: "RuntimeError: wrapped C/C++ object of type NotebookDemo has been deleted" (attached) when I close the GUI frame if I change tabs before I close; where as, if I don't change tabs, or if I change back to "TabOne" before closing the GUI frame, I don't get an error. When I run the same script on a MACOSX running wxpython 3.0.0 I don't get a traceback error if I change tabs or not before closing.

Is there something I'm doing wrong, or is this a bug in Phoenix 4.0.1?

Thanks,
Jeff

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Phoenix vs. Classic Notebook Issue

jeff.kueng
Thanks Mario. What version of wxpython were you running?
Jeff


On Tuesday, October 2, 2018 at 2:25:00 PM UTC-5, Mario Lacunza wrote:
Ubuntu 18.04 your script runs fine with no errors.

Saludos / Best regards

Mario Lacunza
Email:: <a onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;" href="javascript:" target="_blank" rel="nofollow" gdf-obfuscated-mailto="8O_m9ix8AAAJ">mlac...@...
Personal Website:: <a onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.lacunza.biz%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEt9emt9oboPoEFYv0Rr4MY7Hd6RQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.lacunza.biz%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEt9emt9oboPoEFYv0Rr4MY7Hd6RQ&#39;;return true;" href="http://www.lacunza.biz/" target="_blank" rel="nofollow">http://www.lacunza.biz/
Hosting:: <a onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fmlv-host.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGLytZpf4mTQM7vAShupkjUP3GCdA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fmlv-host.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGLytZpf4mTQM7vAShupkjUP3GCdA&#39;;return true;" href="http://mlv-host.com/" target="_blank" rel="nofollow">http://mlv-host.com/
Skype: mlacunzav

Lima - Peru


El mar., 2 de oct. de 2018 a la(s) 13:56, <<a onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;" href="javascript:" target="_blank" rel="nofollow" gdf-obfuscated-mailto="8O_m9ix8AAAJ">jeff....@...> escribió:
When I run the attached script on Linux using wxpython Phoenix 4.0.1, I get the traceback error: "RuntimeError: wrapped C/C++ object of type NotebookDemo has been deleted" (attached) when I close the GUI frame if I change tabs before I close; where as, if I don't change tabs, or if I change back to "TabOne" before closing the GUI frame, I don't get an error. When I run the same script on a MACOSX running wxpython 3.0.0 I don't get a traceback error if I change tabs or not before closing.

Is there something I'm doing wrong, or is this a bug in Phoenix 4.0.1?

Thanks,
Jeff

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;" href="javascript:" target="_blank" rel="nofollow" gdf-obfuscated-mailto="8O_m9ix8AAAJ">wxpython-user...@googlegroups.com.
For more options, visit <a onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" href="https://groups.google.com/d/optout" target="_blank" rel="nofollow">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Phoenix vs. Classic Notebook Issue

Mario Lacunza-2
I have both Python 2 & 3 installed:

mario@pc:~$ python
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> print wx.__version__
3.0.2.0
>>>
[2]+  Detenido                python
mario@pc:~$ python3
Python 3.6.6 (default, Sep 12 2018, 18:26:19)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> print(wx.__version__)
4.0.1
>>>

Saludos / Best regards

Mario Lacunza
Email:: [hidden email]
Personal Website:: http://www.lacunza.biz/
Hosting:: http://mlv-host.com/
Skype: mlacunzav

Lima - Peru


El mié., 3 de oct. de 2018 a la(s) 13:12, <[hidden email]> escribió:
Thanks Mario. What version of wxpython were you running?
Jeff


On Tuesday, October 2, 2018 at 2:25:00 PM UTC-5, Mario Lacunza wrote:
Ubuntu 18.04 your script runs fine with no errors.

Saludos / Best regards

Mario Lacunza
Email:: [hidden email]
Personal Website:: http://www.lacunza.biz/
Hosting:: http://mlv-host.com/
Skype: mlacunzav

Lima - Peru


El mar., 2 de oct. de 2018 a la(s) 13:56, <[hidden email]> escribió:
When I run the attached script on Linux using wxpython Phoenix 4.0.1, I get the traceback error: "RuntimeError: wrapped C/C++ object of type NotebookDemo has been deleted" (attached) when I close the GUI frame if I change tabs before I close; where as, if I don't change tabs, or if I change back to "TabOne" before closing the GUI frame, I don't get an error. When I run the same script on a MACOSX running wxpython 3.0.0 I don't get a traceback error if I change tabs or not before closing.

Is there something I'm doing wrong, or is this a bug in Phoenix 4.0.1?

Thanks,
Jeff

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Phoenix vs. Classic Notebook Issue

Robin Dunn
In reply to this post by jeff.kueng
On Tuesday, October 2, 2018 at 11:56:48 AM UTC-7, [hidden email] wrote:
When I run the attached script on Linux using wxpython Phoenix 4.0.1, I get the traceback error: "RuntimeError: wrapped C/C++ object of type NotebookDemo has been deleted" (attached) when I close the GUI frame if I change tabs before I close; where as, if I don't change tabs, or if I change back to "TabOne" before closing the GUI frame, I don't get an error. When I run the same script on a MACOSX running wxpython 3.0.0 I don't get a traceback error if I change tabs or not before closing.

Is there something I'm doing wrong, or is this a bug in Phoenix 4.0.1?


It sounds like the EVT_NOTEBOOK_PAGE_CHANGED and EVT_NOTEBOOK_PAGE_CHANGING events are being processed after the notebook has started to be or has already been deleted, and the events are probably initially sent when the notebook is deleting the pages and it needs to switch the current page to one that still exists. The delay in processing the events could stem from differences in the GTK version, like gtk2 vs gtk3, or it's not unheard of for different point releases of gtk to have behavioral differences like this. It could also be interference from a theme engine or something. In any case, the workaround is easy, just add something like this to the beginning of those handlers:

    if not self:
        return

--
Robin

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Phoenix vs. Classic Notebook Issue

jeff.kueng
On Wednesday, October 3, 2018 at 5:17:09 PM UTC-5, Robin Dunn wrote:
On Tuesday, October 2, 2018 at 11:56:48 AM UTC-7, <a onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;" href="javascript:" target="_blank" rel="nofollow" gdf-obfuscated-mailto="eR4sbCbUAAAJ">jeff....@... wrote:
When I run the attached script on Linux using wxpython Phoenix 4.0.1, I get the traceback error: "RuntimeError: wrapped C/C++ object of type NotebookDemo has been deleted" (attached) when I close the GUI frame if I change tabs before I close; where as, if I don't change tabs, or if I change back to "TabOne" before closing the GUI frame, I don't get an error. When I run the same script on a MACOSX running wxpython 3.0.0 I don't get a traceback error if I change tabs or not before closing.

Is there something I'm doing wrong, or is this a bug in Phoenix 4.0.1?


It sounds like the EVT_NOTEBOOK_PAGE_CHANGED and EVT_NOTEBOOK_PAGE_CHANGING events are being processed after the notebook has started to be or has already been deleted, and the events are probably initially sent when the notebook is deleting the pages and it needs to switch the current page to one that still exists. The delay in processing the events could stem from differences in the GTK version, like gtk2 vs gtk3, or it's not unheard of for different point releases of gtk to have behavioral differences like this. It could also be interference from a theme engine or something. In any case, the workaround is easy, just add something like this to the beginning of those handlers:

    if not self:
        return

--
Robin


Thanks Robin that worked!
Jeff 

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Phoenix vs. Classic Notebook Issue

jeff.kueng
In reply to this post by Mario Lacunza-2
Thanks Mario, Now I understand.

On Wednesday, October 3, 2018 at 1:26:34 PM UTC-5, Mario Lacunza wrote:
I have both Python 2 & 3 installed:

mario@pc:~$ python
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> print wx.__version__
3.0.2.0
>>>
[2]+  Detenido                python
mario@pc:~$ python3
Python 3.6.6 (default, Sep 12 2018, 18:26:19)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> print(wx.__version__)
4.0.1
>>>

Saludos / Best regards

Mario Lacunza
Email:: <a onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;" href="javascript:" target="_blank" rel="nofollow" gdf-obfuscated-mailto="jLdjHJHHAAAJ">mlac...@...
Personal Website:: <a onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.lacunza.biz%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEt9emt9oboPoEFYv0Rr4MY7Hd6RQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.lacunza.biz%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEt9emt9oboPoEFYv0Rr4MY7Hd6RQ&#39;;return true;" href="http://www.lacunza.biz/" target="_blank" rel="nofollow">http://www.lacunza.biz/
Hosting:: <a onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fmlv-host.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGLytZpf4mTQM7vAShupkjUP3GCdA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fmlv-host.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGLytZpf4mTQM7vAShupkjUP3GCdA&#39;;return true;" href="http://mlv-host.com/" target="_blank" rel="nofollow">http://mlv-host.com/
Skype: mlacunzav

Lima - Peru


El mié., 3 de oct. de 2018 a la(s) 13:12, <<a onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;" href="javascript:" target="_blank" rel="nofollow" gdf-obfuscated-mailto="jLdjHJHHAAAJ">jeff....@...> escribió:
Thanks Mario. What version of wxpython were you running?
Jeff


On Tuesday, October 2, 2018 at 2:25:00 PM UTC-5, Mario Lacunza wrote:
Ubuntu 18.04 your script runs fine with no errors.

Saludos / Best regards

Mario Lacunza
Email:: [hidden email]
Personal Website:: <a onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.lacunza.biz%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEt9emt9oboPoEFYv0Rr4MY7Hd6RQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.lacunza.biz%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEt9emt9oboPoEFYv0Rr4MY7Hd6RQ&#39;;return true;" href="http://www.lacunza.biz/" target="_blank" rel="nofollow">http://www.lacunza.biz/
Hosting:: <a onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fmlv-host.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGLytZpf4mTQM7vAShupkjUP3GCdA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fmlv-host.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGLytZpf4mTQM7vAShupkjUP3GCdA&#39;;return true;" href="http://mlv-host.com/" target="_blank" rel="nofollow">http://mlv-host.com/
Skype: mlacunzav

Lima - Peru


El mar., 2 de oct. de 2018 a la(s) 13:56, <[hidden email]> escribió:
When I run the attached script on Linux using wxpython Phoenix 4.0.1, I get the traceback error: "RuntimeError: wrapped C/C++ object of type NotebookDemo has been deleted" (attached) when I close the GUI frame if I change tabs before I close; where as, if I don't change tabs, or if I change back to "TabOne" before closing the GUI frame, I don't get an error. When I run the same script on a MACOSX running wxpython 3.0.0 I don't get a traceback error if I change tabs or not before closing.

Is there something I'm doing wrong, or is this a bug in Phoenix 4.0.1?

Thanks,
Jeff

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-user...@googlegroups.com.
For more options, visit <a onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" href="https://groups.google.com/d/optout" target="_blank" rel="nofollow">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;" href="javascript:" target="_blank" rel="nofollow" gdf-obfuscated-mailto="jLdjHJHHAAAJ">wxpython-user...@googlegroups.com.
For more options, visit <a onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" href="https://groups.google.com/d/optout" target="_blank" rel="nofollow">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.