PyDeadObjectError using cut and paste on 0.7.2
Federico Fanton <[email protected]>
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <[email protected]> |
Hi everyone!
I'm receiving a PyDeadObjectError upon pasting something I had
previously cut. Here are the steps to reproduce:
1. Add a wxFrame
2. Create a button
3. Cut the button (CTRL-X or via context menu)
4. Paste the button again (via context menu)
Please note that pasting with CTRL-V works.
Details:
ERROR : None
An unexpected error occurred!
Date and time: 2016-03-11T12:21:53.845693
Python version: 2.7.3
wxPython version: 2.8.12.1
wxWidgets platform: __WXGTK__
wxGlade version: 0.7.2
Language code: en_US
Encoding: UTF-8
Filesystem encoding: UTF-8
Exception type: <class 'wx._core.PyDeadObjectError'>
Exception details: The C++ part of the Window object has been deleted,
attribute access no longer allowed.
Application stack trace:
Stack frame at level 0
======================
File
"/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
14615
Function "__getattr__(self=wxPython wrapper for DELETED Window
object! (The C++ object no longer exists.), *args=('Hide',))"
Source code context:
def __getattr__(self, *args):
if not hasattr(self, "_name"):
self._name = "[unknown]"
-> raise PyDeadObjectError(self.attrStr % self._name)
def __nonzero__(self):
return 0
Local variables:
-> self (<class 'wx._core._wxPyDeadObject'>): wxPython wrapper for
DELETED Window object! (The C++ object no longer exists.)
-> args (<type 'tuple'>): ('Hide',)
Stack frame at level 1
======================
File "/home/joril/opt/wxGlade-0.7.2/edit_sizers/edit_sizers.py", line 414
Function "clipboard_paste(self=<edit_sizers.edit_sizers.SizerSlot
object at 0x29a09d0>, event=<wx._core.CommandEvent; proxy of <Swig
Object of type 'wxCommandEvent *' at 0x7ffeca825140> >)"
Source code context:
"""
if clipboard.paste(self.parent, self.sizer, self.pos):
common.app_tree.app.saved = False
-> self.widget.Hide()
def on_select_and_paste(self, *args):
"""\
Local variables:
-> self (<class 'edit_sizers.edit_sizers.SizerSlot'>):
<edit_sizers.edit_sizers.SizerSlot object at 0x29a09d0>
-> event (<class 'wx._core.CommandEvent'>): <wx._core.CommandEvent;
proxy of <Swig Object of type 'wxCommandEvent *' at 0x7ffeca825140> >
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140