thegooglecodearchive / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 1 forks source link

PyStudio - crash report - PyDebugger #204

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Received via automatic error reporter logging here till resolved

*** Thu Jan 19 08:25:29 2012 ***
Traceback (most recent call last):
File %22/Users/corbinlinks/Library/Application 
Support/Editra/plugins/PyStudio-0.4-py2.6.egg/PyStudio/Debugger/ExpressionsShelf
Window.py%22, line 160, in OnExecute
File %22/Users/corbinlinks/Library/Application 
Support/Editra/plugins/PyStudio-0.4-py2.6.egg/PyStudio/Debugger/ExpressionDialog
.py%22, line 33, in __init__
AttributeError: ExpressionDialog object has no attribute _sizer

Original issue reported on code.google.com by CodyPrec...@gmail.com on 21 Jan 2012 at 4:50

GoogleCodeExporter commented 9 years ago
Cody the ECBaseDlg code has changed. It used to be:
        self._sizer = wx.BoxSizer(wx.VERTICAL)

        # Setup
        self.SetSizer(self._sizer)

And then the ExpressionDialog uses self._sizer.

Now the ECBaseDlg says:
self.SetSizer(wx.BoxSizer(wx.VERTICAL))

How can I get the sizer object?

Original comment by rans1...@gmail.com on 26 Mar 2012 at 8:12

GoogleCodeExporter commented 9 years ago
Hi,

Don't remember when I changed that but must have missed this usage.

All Window objects store their sizer object you can easily get to it by either:

self.GetSizer() # Returns the sizer object

OR

self.Sizer # Sizer object property

Original comment by CodyPrec...@gmail.com on 26 Mar 2012 at 8:16

GoogleCodeExporter commented 9 years ago
I have replaced all self._sizer with self.Sizer which should fix this bug.

Original comment by rans1...@gmail.com on 26 Mar 2012 at 8:23

GoogleCodeExporter commented 9 years ago

Original comment by rans1...@gmail.com on 30 Mar 2012 at 8:19