I found the following differences from 2.4.2.4 to 2.5.1
wx.true replace with True
wx.false replace with False
wx.NULL replace with None
All calls to Add on sizers that take a width and height need to change
to take a tuple of width and height.
Tree control GetFirstChild no longed needs the cookie second param as
input.
You might want to add to the Migration guide.
Barry
Robin
2
Barry Scott wrote:
I found the following differences from 2.4.2.4 to 2.5.1
wx.true replace with True
wx.false replace with False
wx.NULL replace with None
Yep.
All calls to Add on sizers that take a width and height need to change
to take a tuple of width and height.
This one is already there:
"""
When adding a spacer to a sizer you now need to use a wx.Size or a 2-integer sequence instead of separate width and height parameters.
"""
Tree control GetFirstChild no longed needs the cookie second param as
input.
Yep. Thanks for pointing these out.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Robin Dunn wrote:
Barry Scott wrote:
Tree control GetFirstChild no longed needs the cookie second param as
input.
Yep. Thanks for pointing these out.
And GetNextChild does need it? So this will not work any more:
nc = self.GetChildrenCount(self.root, False)
GetChild = self.GetFirstChild
for i in range(nc):
child, cookie = GetChild(self.root, cookie)
GetChild = self.GetNextChild
.....
Christian Kristukat
Robin
4
Christian Kristukat wrote:
Robin Dunn wrote:
Barry Scott wrote:
Tree control GetFirstChild no longed needs the cookie second param as
input.
Yep. Thanks for pointing these out.
And GetNextChild does need it? So this will not work any more:
nc = self.GetChildrenCount(self.root, False)
GetChild = self.GetFirstChild
for i in range(nc):
child, cookie = GetChild(self.root, cookie)
GetChild = self.GetNextChild
.....
No, but this will:
item, cookie = self.GetFirstChild(self.root)
while item:
DoSomething(item)
item, cookie = self.GetNextChild(item, cookie)
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!