Olivier Thiery | 3 Nov 11:15 2006
Picon

Re: StaticBoxSizers again

Of course this all happens with wxPython 2.7.1.2 and boa 0.5.2 from cvs (checked yesterday after the last fixes from Riaan).

Olivier

2006/11/3, Olivier Thiery < olivier.th-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
Hi,

I'm sorry I have another bug with StaticBoxes and StaticBoxSizers.

When I try to edit the attached source in the designer I first get an error about the StaticBitmap relative path (scrsht_1.png). This is not my point here, and anyway this has never been a real problem to me.

The interesting part begins when I try to drop a StaticBox to my Dialog. Once I release the mouse button, I get an error (log.txt).

The only thing I can do then is to drop a StaticBoxSizer, but then I get PyDeadObject errors each time I try to click on the dialog.

In the end I can only cancel the design session.

I hope this will fix the new sizers features.

Olivier


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boa-constructor-users mailing list
Boa-constructor-users@...
https://lists.sourceforge.net/lists/listinfo/boa-constructor-users
Olivier Thiery | 3 Nov 11:11 2006
Picon

StaticBoxSizers again

Hi,

I'm sorry I have another bug with StaticBoxes and StaticBoxSizers.

When I try to edit the attached source in the designer I first get an error about the StaticBitmap relative path (scrsht_1.png). This is not my point here, and anyway this has never been a real problem to me.

The interesting part begins when I try to drop a StaticBox to my Dialog. Once I release the mouse button, I get an error (log.txt).

The only thing I can do then is to drop a StaticBoxSizer, but then I get PyDeadObject errors each time I try to click on the dialog.

In the end I can only cancel the design session.

I hope this will fix the new sizers features.

Olivier

Attachment (TransfertLotDialog.py): text/x-python, 5544 bytes
11:03:44:     wx._core.PyDeadObjectError: The C++ part of the StaticBox object has been deleted, attribute
access no longer allowed.Traceback (most recent call last):
11:03:44:     wx._core.PyDeadObjectError: The C++ part of the StaticBox object has been deleted, attribute
access no longer allowed.  File
"C:\Python24\Lib\site-packages\boa-constructor\Views\Designer.py", line 1585, in OnControlSelect
11:03:44:     dsgn.selectControlByPos(ctrl, pos, event.ShiftDown())                       
11:03:44:       File "C:\Python24\Lib\site-packages\boa-constructor\Views\Designer.py", line 1002, in selectControlByPos
11:03:44:     ci = collEditView.companion.appendItem(                                     
11:03:44:       File
"C:\Python24\Lib\site-packages\boa-constructor\Companions\SizerCompanions.py", line 194, in appendItem
11:03:44:     self.recreateSizers()                                                       
11:03:44:       File
"C:\Python24\Lib\site-packages\boa-constructor\Companions\SizerCompanions.py", line 323, in recreateSizers
11:03:44:     self.designer.recreateSizers()                                              
11:03:44:       File "C:\Python24\Lib\site-packages\boa-constructor\Views\SizersView.py", line 71, in recreateSizers
11:03:44:     self.objects[sizerName][0].recreateSizer()                                  
11:03:44:       File
"C:\Python24\Lib\site-packages\boa-constructor\Companions\SizerCompanions.py", line 87, in recreateSizer
11:03:44:     self.control = self.designTimeObject(args)                                  
11:03:44:       File
"C:\Python24\Lib\site-packages\boa-constructor\Companions\SizerCompanions.py", line 507, in designTimeObject
11:03:44:     self.control = self.objClass(**args)                                        
11:03:44:       File "C:\Python24\lib\site-packages\wx-2.7.1-msw-unicode\wx\_core.py", line 12245, in __init__
11:03:44:     _core_.StaticBoxSizer_swiginit(self,_core_.new_StaticBoxSizer(*args, **kwargs))
11:03:44:     TypeError: in method 'new_StaticBoxSizer', expected argument 1 of type 'wxStaticBox *'
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boa-constructor-users mailing list
Boa-constructor-users@...
https://lists.sourceforge.net/lists/listinfo/boa-constructor-users
Riaan Booysen | 3 Nov 13:10 2006
Picon

Re: StaticBoxSizers again

Hi Olivier,

Sorry I didn't pick this up, I never use wx.StaticBoxSizer.

Ok, I've tracked down the problem, but don't know how to fix it yet.

The issue is that while working with sizers in the Designer,
Boa recreates all the sizers often, but the behaviour of
StaticBoxSizers seems to have changed between 2.6 and 2.7.

Under 2.6 when a StaticBoxSizer is deleted, it left the StaticBox
alone, but under 2.7 when the sizer is deleted, it also deletes
the StaticBox, which is very nasty.

I'll be looking at how to handle this, but I'm not very optimistic :(

Cheers,
Riaan.

Olivier Thiery wrote:
> Hi,
> 
> I'm sorry I have another bug with StaticBoxes and StaticBoxSizers.
> 
> When I try to edit the attached source in the designer I first get an 
> error about the StaticBitmap relative path (scrsht_1.png). This is not 
> my point here, and anyway this has never been a real problem to me.
> 
> The interesting part begins when I try to drop a StaticBox to my Dialog. 
> Once I release the mouse button, I get an error (log.txt).
> 
> The only thing I can do then is to drop a StaticBoxSizer, but then I get 
> PyDeadObject errors each time I try to click on the dialog.
> 
> In the end I can only cancel the design session.
> 
> I hope this will fix the new sizers features.
> 
> Olivier
> 
> 
> ------------------------------------------------------------------------
> 
> #Boa:Dialog:TransfertLotDialog
> 
> import wx
> import wx.lib.buttons
> import data.CustomTreeCtrl as ctc
> from data.CustomTreeCtrl import CustomTreeCtrl
> 
> def create(parent):
>     return TransfertLotDialog(parent)
> 
> [wxID_TRANSFERTLOTDIALOG, wxID_TRANSFERTLOTDIALOGGENBTNEWLOT, 
>  wxID_TRANSFERTLOTDIALOGSTBXNOUVEAULOT, wxID_TRANSFERTLOTDIALOGTREELOTS, 
>  wxID_TRANSFERTLOTDIALOGTXTNOMLOT, 
> ] = [wx.NewId() for _init_ctrls in range(5)]
> 
> class TransfertLotDialog(wx.Dialog):
>     _custom_classes = {'wx.TreeCtrl':['CustomTreeCtrl']}
>     def _init_coll_Main_Items(self, parent):
>         # generated method, don't edit
> 
>         parent.AddWindow(self.treeLots, 1, border=5, flag=wx.ALL | wx.EXPAND)
>         parent.AddSizer(self.sb_lot, 0, border=5, flag=wx.ALL | wx.EXPAND)
> 
>     def _init_coll_sb_lot_Items(self, parent):
>         # generated method, don't edit
> 
>         parent.AddWindow(self.txtNomLot, 1, border=0, flag=0)
>         parent.AddWindow(self.genBtNewLot, 0, border=5,
>               flag=wx.ALIGN_CENTER_VERTICAL | wx.LEFT)
> 
>     def _init_sizers(self):
>         # generated method, don't edit
>         self.Main = wx.BoxSizer(orient=wx.VERTICAL)
> 
>         self.sb_lot = wx.StaticBoxSizer(box=self.stbxNouveauLot,
>               orient=wx.HORIZONTAL)
> 
>         self._init_coll_Main_Items(self.Main)
>         self._init_coll_sb_lot_Items(self.sb_lot)
> 
>         self.SetSizer(self.Main)
> 
>     def _init_ctrls(self, prnt):
>         # generated method, don't edit
>         wx.Dialog.__init__(self, id=wxID_TRANSFERTLOTDIALOG,
>               name=u'TransfertLotDialog', parent=prnt, pos=wx.Point(587, 355),
>               size=wx.Size(318, 368), style=wx.DEFAULT_DIALOG_STYLE,
>               title=u'Transfert de PMC')
>         self.SetClientSize(wx.Size(310, 334))
> 
>         self.treeLots = wx.TreeCtrl(id=wxID_TRANSFERTLOTDIALOGTREELOTS,
>               name=u'treeLots', parent=self, pos=wx.Point(5, 5),
>               size=wx.Size(300, 271))
> 
>         self.stbxNouveauLot = wx.StaticBox(id=wxID_TRANSFERTLOTDIALOGSTBXNOUVEAULOT,
>               label=u'Nouveau Lot', name=u'stbxNouveauLot', parent=self,
>               pos=wx.Point(5, 286), size=wx.Size(300, 43), style=0)
> 
>         self.txtNomLot = wx.TextCtrl(id=wxID_TRANSFERTLOTDIALOGTXTNOMLOT,
>               name=u'txtNomLot', parent=self, pos=wx.Point(10, 303),
>               size=wx.Size(262, 21), style=0, value=u'')
> 
>         self.genBtNewLot = wx.lib.buttons.GenBitmapButton(id=wxID_TRANSFERTLOTDIALOGGENBTNEWLOT,
>               bitmap=wx.Bitmap(u'img/16/edit_add.png',
>               wx.BITMAP_TYPE_PNG), name=u'genBtNewLot', parent=self,
>               pos=wx.Point(277, 305), size=wx.Size(23, 16), style=0)
>         self.genBtNewLot.Bind(wx.EVT_BUTTON, self.OnGenBtNewLotButton,
>               id=wxID_TRANSFERTLOTDIALOGGENBTNEWLOT)
> 
>         self._init_sizers()
>     
>     def __init__(self, parent):
>         #, ctstyle=ctc.TR_AUTO_CHECK_CHILD | ctc.TR_HIDE_ROOT | ctc.TR_HAS_BUTTONS
>         self._init_ctrls(parent)
>         self.init_data()
>         
>     def init_data(self):
>         ds = wxData.getDataSet(wxData.getQuery('pmc.commission', 'pmc.select.lots'))
>         ds.setParam('id_modalite',self.id)
>         ds.read()
>         cur_ref_id = None
>         cur_root = None
>         root = self.treeKeys.AddRoot('Lots disponibles')
>         while ds.hasMore():
>             r = ds.nextRow()
>             if r['id_referentiel'] != cur_ref_id:
>                 if cur_root != None:
>                     self.treeKeys.Expand(cur_root)
>                 cur_ref_id = r['id_referentiel']
>                 cur_root = self.treeKeys.AppendItem(root, r['libelle_referentiel'], 1, image=0)
>                 self.__roots.append(cur_root)
>                 self.treeKeys.SetItemImage(cur_root, 1, wx.TreeItemIcon_Expanded)
>             item = self.treeKeys.AppendItem(cur_root, r['libelle_modalite'], 1, image=2)
>             self.data[item] = r['id_modalite_referentiel']
>         if cur_root != None:
>             self.treeKeys.Expand(cur_root)
> 
>     def OnGenBtNewLotButton(self, event):
>         event.Skip()
> 
> 
> ------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> 11:03:44:     wx._core.PyDeadObjectError: The C++ part of the StaticBox object has been deleted,
attribute access no longer allowed.Traceback (most recent call last):
> 11:03:44:     wx._core.PyDeadObjectError: The C++ part of the StaticBox object has been deleted,
attribute access no longer allowed.  File
"C:\Python24\Lib\site-packages\boa-constructor\Views\Designer.py", line 1585, in OnControlSelect
> 11:03:44:     dsgn.selectControlByPos(ctrl, pos, event.ShiftDown())                       
> 11:03:44:       File "C:\Python24\Lib\site-packages\boa-constructor\Views\Designer.py", line 1002,
in selectControlByPos
> 11:03:44:     ci = collEditView.companion.appendItem(                                     
> 11:03:44:       File
"C:\Python24\Lib\site-packages\boa-constructor\Companions\SizerCompanions.py", line 194, in appendItem
> 11:03:44:     self.recreateSizers()                                                       
> 11:03:44:       File
"C:\Python24\Lib\site-packages\boa-constructor\Companions\SizerCompanions.py", line 323, in recreateSizers
> 11:03:44:     self.designer.recreateSizers()                                              
> 11:03:44:       File "C:\Python24\Lib\site-packages\boa-constructor\Views\SizersView.py", line 71,
in recreateSizers
> 11:03:44:     self.objects[sizerName][0].recreateSizer()                                  
> 11:03:44:       File
"C:\Python24\Lib\site-packages\boa-constructor\Companions\SizerCompanions.py", line 87, in recreateSizer
> 11:03:44:     self.control = self.designTimeObject(args)                                  
> 11:03:44:       File
"C:\Python24\Lib\site-packages\boa-constructor\Companions\SizerCompanions.py", line 507, in designTimeObject
> 11:03:44:     self.control = self.objClass(**args)                                        
> 11:03:44:       File "C:\Python24\lib\site-packages\wx-2.7.1-msw-unicode\wx\_core.py", line 12245,
in __init__
> 11:03:44:     _core_.StaticBoxSizer_swiginit(self,_core_.new_StaticBoxSizer(*args, **kwargs))
> 11:03:44:     TypeError: in method 'new_StaticBoxSizer', expected argument 1 of type 'wxStaticBox *'
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Boa-constructor-users mailing list
> Boa-constructor-users@...
> https://lists.sourceforge.net/lists/listinfo/boa-constructor-users

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Riaan Booysen | 3 Nov 13:10 2006
Picon

Re: Code transformation

Hi Tim,

Tim Black wrote:
>    I've been wondering what the menu option "Code Transformation" does; 
> could anyone give an explanation for how it works?  Thanks!

A Code Transformation can generate some code for you depending on the
context of where the caret is.

Currenly two transformations are supported.

If your caret is on a method definition and you do a code transform,
the inherited parent call is added.

If your caret is on a method call and it's not defined in your class,
the method is added at the bottom of the class.

Cheers,
Riaan.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Duane Kaufman | 3 Nov 16:25 2006

Boa remembering screen position

Hi All,

Does anyone know how/if Boa can remember the on-screen position of
windows when closed, for use when starting again?

I have looked through the documentation, but might have missed this.

Thanks,
Duane

NOTICE: These communications may contain privileged or other confidential information for the sole use
of the designated recipients. If you have received it in error, please advise the sender by reply email and
immediately delete the message and any attachments without reviewing, copying or disclosing the contents.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Riaan Booysen | 3 Nov 17:21 2006
Picon

Re: Boa remembering screen position

Hi Duane,

Duane Kaufman wrote:
 > Hi All,
 >
 > Does anyone know how/if Boa can remember the on-screen position of
 > windows when closed, for use when starting again?
 >
 > I have looked through the documentation, but might have missed this.

Windows->All window dimensions->Save

Cheers,
Riaan.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Riaan Booysen | 9 Nov 04:17 2006
Picon

Re: [Boa Constr] Bad with 2.7.2

Hi,

Mario Lacunza wrote:
> Hi,
> 
> I just uptodate my wxPython from 2.7.1.3 to 2.7.2 Unicode
> 
> And when I open my Boa Constructor see an error:
> 
> http://mlacunzav.cogia.net/Imagenes/Pantallazo-BOA.png
> <http://mlacunzav.cogia.net/Imagenes/Pantallazo-BOA.png>
> 
> I see the list control cut in the bottom (with no mode to restore it)
> and in the middle, between tab Aplicacion and Modulo I see an another
> tab in the left background?
> 
> Before Boa works great...Any idea?

Fixed in CVS.

I had to call SetMinSize(wx.DefaultSize) for both the windows
in the splitter before the splitter would move.

Also checked in suppression of DeprecationWarnings caused when
a frame is opened in the Designer and some wx objects are
introspected under 2.7.2.

Thanks,
Riaan.
Michele Petrazzo | 10 Nov 18:26 2006
Picon

last cvs bug

Hi,
the wx.Locale.IsAvailable was introduce into 2.7.1, so for old version,
use this function can be a problem. This patch solve the problem.
PrefsExplorer line 379

     def getValues(self):
         if wx.__version__ >= '2.7.1.0':
             return ['wx.'+n for n in dir(wx)
                 if n.startswith('LANGUAGE_') and 
wx.Locale.IsAvailable(getattr(wx, n))]
         else:
             return ['wx.'+n for n in dir(wx)
                 if n.startswith('LANGUAGE_') ]

Michele

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Didier100 | 10 Nov 20:30 2006

Re: HOW TO START BOAConstructor?


HI,

Start this program :
C:\Python25\Lib\site-packages\boa-constructor\Boa.py

As you I'm discovering Boa Constructor ... and after searching a bit I found
the information that you are searching for.

Regards, Didier100

Zsolt G. Kiss wrote:
> 
> Hi,
> 
> I work in IT but have not used Python yet. Today I just installed it 
> together with the BOAConstructor (and wxPython, of course. On Windows) 
> Now: HOW CAN I START this smart IDE? No icon, bin folder, exe file... 
> Hundreds of .py and .pyc in the LIB. And NO ONE WORD ABOUT THIS IN THE 
> DOCS!!!?
> 
> many thanks,
>    ZK
> 
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Boa-constructor-users mailing list
> Boa-constructor-users@...
> https://lists.sourceforge.net/lists/listinfo/boa-constructor-users
> 
> 

--

-- 
View this message in context: http://www.nabble.com/HOW-TO-START-BOAConstructor--tf2545395.html#a7283633
Sent from the BoA Constructor - User mailing list archive at Nabble.com.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Riaan Booysen | 11 Nov 13:15 2006
Picon

Re: last cvs bug

Hi Michele,

Michele Petrazzo wrote:
> Hi,
> the wx.Locale.IsAvailable was introduce into 2.7.1, so for old version,
> use this function can be a problem. This patch solve the problem.
> PrefsExplorer line 379
> 
>      def getValues(self):
>          if wx.__version__ >= '2.7.1.0':
>              return ['wx.'+n for n in dir(wx)
>                  if n.startswith('LANGUAGE_') and 
> wx.Locale.IsAvailable(getattr(wx, n))]
>          else:
>              return ['wx.'+n for n in dir(wx)
>                  if n.startswith('LANGUAGE_') ]

I fixed this a little differently yesterday. IsAvailable can also
raise PyAssertionErrors, That's handled too.

Checked into CVS.

Cheers,
Riaan.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Gmane