reingart / rad2py_googlecode

Automatically exported from code.google.com/p/rad2py
GNU General Public License v3.0
0 stars 1 forks source link

AuiToolbar SEGV with wx 2.8.10 #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download rad2py 0.06
2. cd rad2py/ide2py
3. python main.py

What is the expected output? What do you see instead?

Traceback (most recent call last):
 File "main.py", line 790, in <module>
   app = MainApp(redirect=False)
 File "/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7978, in __init__
   self._BootstrapApp()
 File "/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7552, in _BootstrapApp
   return _core_.PyApp__BootstrapApp(*args, **kwargs)
 File "main.py", line 774, in OnInit
   self.main_frame = PyAUIFrame(None)
 File "main.py", line 306, in __init__
   PSPMixin.__init__(self)
 File "/opt/src/web2py/rad2py/ide2py/psp.py", line 441, in __init__
   tb4 = self.CreatePSPToolbar()
 File "/opt/src/web2py/rad2py/ide2py/psp.py", line 523, in CreatePSPToolbar
   tb4.Realize()
 File "/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/lib/agw/aui/auibar.py",
line 2837, in Realize
   sizer_item.SetMinSize(min_size)
AttributeError: 'SizerItem' object has no attribute 'SetMinSize'
Violación de segmento

(segmentation fault)

Please use labels and text to provide additional information.

Jose luis Redrejo Rodrigues found this workaround:

$ diff -u psp.py.original psp.py
--- psp.py.original     2011-08-12 17:16:30.000000000 +0200
+++ psp.py      2011-08-12 17:16:38.000000000 +0200
@@ -502,10 +502,10 @@

        ##tb4.AddLabel(-1, "Phase:", width=50)
        self.psp_phase_choice = wx.Choice(tb4, -1, choices=PSP_PHASES)
-        tb4.AddControl(self.psp_phase_choice, "PSP Phase")
+        #tb4.AddControl(self.psp_phase_choice, "PSP Phase")

        self.psp_gauge = wx.Gauge(tb4, -1, 100, (50, 10))
-        tb4.AddControl(self.psp_gauge, "Progressbar")
+        #tb4.AddControl(self.psp_gauge, "Progressbar")

        tb4.AddSimpleTool(ID_DEFECT, "Defect", images.GetDebuggingBitmap(),
                          short_help_string="Add a PSP defect")

Original issue reported on code.google.com by reingart@gmail.com on 12 Aug 2011 at 3:41

GoogleCodeExporter commented 9 years ago
Partially fixed in 0.08 (looks ugly but works)

Original comment by reingart@gmail.com on 13 Aug 2011 at 4:33

GoogleCodeExporter commented 9 years ago
The "PSP Toolbar" design button has what i think is a widget on top of it. It 
is an horizontal bar with vertical lines and cannot be moved.

OS. GNU/Linux Mandriva Free dist.
wx 2.8.10.1 (gtk2-unicode)
running ide2py 0.08 and web2py Version 1.98.2
Python 2.6.5

Original comment by spame...@gmail.com on 13 Aug 2011 at 3:21