No, still nothing. I'm not sure what code will help; this isn't a big
application, but it's not one or two files either. For now, here's a
condensed version of my GUIManager.py file:
#import stuff
logger = logging.getLogger(globals.appName+"."+__name__)
class ListManager(wx.Panel):
def __init__(self,
#a bunch more parameters
):
super(ListManager, self).__init__(parent)
self.logger = logging.getLogger(globals.appName+"."+__name__+"."+title)
self.logger.debug("Initializing.")
#a bunch more setup
def setUpGUI(self):
raise NotImplementedError
#a couple more methods
class JobsListManager(ListManager):
def __init__(self,
#yet more parameters
):
#do more setup, then:
atexit.register(self.onExit)
super(JobsListManager, self).__init__( parent, title, choices,
columnHeaders, showAddButton, addButtonLabel, showEditButton,
editButtonLabel, showDeleteButton, deleteButtonLabel)
def setUpGUI(self):
#a bunch of setup, then:
self.nextRunDisplayTimesUpdateTimer.start()
#methods and more methods...
def onExit(self):
try:
self.nextRunDisplayTimesUpdateTimer.stop()
except wx._core.PyDeadObjectError, e:
self.logger.error("Error cancelling timeToNextRun update timer.")
I don't know if that's what you wanted, or if more code would help? If
it matters, this all gets kicked off in main.py, which calls initGUI
in GUIManager.py, which creates these ListManager objects and adds
them to a notebook in a frame.
···
On 2/1/16, Karsten Hilbert <Karsten.Hilbert@gmx.net> wrote:
On Mon, Feb 01, 2016 at 08:28:20AM -0500, Alex Hall wrote:
Thanks for the suggestion, but I'm now getting the exact same error on
the line where I log the exception.
Likely, when logging the exception instance the logging code
tries again to access some wx part that's already gone.
Tried "log.whine('cannot shutdown timer')" instead ?
If that doesn't help you'll have to show more of what's actually happening.
Karsten
--
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
--
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-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.