#1
  1. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    155

    Boa Constructor Bug


    I just found a bug in Boa Constructor, it isn't serious, because you can retype the syntax error (it adds an extra ".") yourself. Here is an example of what happens:
    Code:
            self.panel1 = wx.Panel(id=wxID_SLBOTPANEL1, name='panel1', parent=self,
                  pos=wx.Point(704, 8), size=wx.Size(200, 400),
                  style=wx.TAB_TRAVERSAL)
            self.panel1.SetBackgroundColour(wx.Colour(82, 0, 164))
    
            self..CheckBox1 = wx.CheckBox(id=wxID_SLBOT.CHECKBOX1,
                  label='Enable Builtin Commands', name='.CheckBox1',
                  parent=self.panel1, pos=wx.Point(0, 8), size=wx.Size(176, 13),
                  style=0)
            self..CheckBox1.SetForegroundColour(wx.Colour(255, 255, 255))
            self..CheckBox1.SetValue(False)
            self..CheckBox1.SetToolTipString('Enable Builtin Commands')
            self..CheckBox1.Set3StateValue(1)
            self..CheckBox1.Bind(wx.EVT_CHECKBOX, self.OnCheckBox1Checkbox,
                  id=wxID_SLBOT.CHECKBOX1)
    So far this has only happened when using a Panel.

    Update: I've just found a bunch more bugs. All of them are related to the Panel. Boa will repeat code it has already used for each type you edit the objects inside of the Panel. Instead of replacing it or editing it like it should normally do, it appens it to your file. Not good, I am getting many errors now.

    Update: I think I found a solution. If only one object of a unique type (not the same as the object before) is added at a time. Errors aren't produced, however, the code still isn't as good as it should be.
    Last edited by †Yegg†; June 18th, 2005 at 02:03 PM.
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2005
    Posts
    620
    Rep Power
    65
    Werner at the BOA forum would/should know. Just post your finding there:
    http://sourceforge.net/forum/forum.php?forum_id=5483
  4. #3
  5. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    155
    Thanks. I just finished signing up, I'll post the problem.

    Note: I found more bugs with Panels after I made this post.

IMN logo majestic logo threadwatch logo seochat tools logo