Hi Juho, I can't reproduce this. Could you attach an action list and an
example image? Also exactly describe the steps to reproduce as this
might be dependent on what you did before as it doesn't reproduce out of
the box. I try a possible fix as well and push it upstream. So try
again.

$ bzr commit -m "avoid dead object"
Committing to: /home/stani/sync/python/phatch/trunk/                           
modified phatch/pyWx/lib/popup.py                                              
Committed revision 767.                       

$ bzr diff -r-2
=== modified file 'phatch/pyWx/lib/popup.py'
--- phatch/pyWx/lib/popup.py    2009-06-12 03:53:32 +0000
+++ phatch/pyWx/lib/popup.py    2009-06-13 11:41:54 +0000
@@ -121,7 +121,8 @@
         wx.CallAfter(self.OnAfterChange)
         
     def OnAfterChange(self):
-        self.on_change(unicode(self.Get()))    
+        if self:
+            self.on_change(unicode(self.Get()))    
     
 class TextCtrl(_CtrlChoices,wx.ComboBox):
     def __init__(self,parent,value,id=-1,choices=None,**keyw):


** Changed in: phatch
       Status: New => Incomplete

** Changed in: phatch
     Assignee: (unassigned) => stani (stani)

-- 
Color to Alpha action - Select Color By field crashes app
https://bugs.launchpad.net/bugs/386638
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.

Status in Phatch = Photo & Batch!: Incomplete

Bug description:
Add "Color to Alpha" action. Change "Select Color By" to the last option. 
Change it back to the first option -> crash:
Traceback (most recent call last):                                              
     
  File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 
14614, in <lambda>                                                              
          
    lambda event: event.callable(*event.args, **event.kw) )                     
     
  File "/usr/local/lib/python2.6/site-packages/phatch/pyWx/lib/popup.py", line 
124, in OnAfterChange                                                           
           
    self.on_change(unicode(self.Get()))                                         
     
  File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 
14564, in __getattr__
    raise PyDeadObjectError(self.attrStr % self._name)
wx._core.PyDeadObjectError: The C++ part of the Choice object has been deleted, 
attribute access no longer allowed.
jutuv...@linux-v4f0:~/Projects/phatch/phatch> phatch
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 
14614, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "/usr/local/lib/python2.6/site-packages/phatch/pyWx/lib/popup.py", line 
124, in OnAfterChange
    self.on_change(unicode(self.Get()))
  File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 
14564, in __getattr__
    raise PyDeadObjectError(self.attrStr % self._name)
wx._core.PyDeadObjectError: The C++ part of the Choice object has been deleted, 
attribute access no longer allowed.

Tested in rev. 766 of trunk.

_______________________________________________
Mailing list: https://launchpad.net/~phatch-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~phatch-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to