Couple of updates and bug reports

Hi gang,

    some users have reported a couple of bugs in the custom controls
now present in wxPython wx.lib:

1) ButtonPanel, line 623 states:

dc.DrawLine(coord, rect.y, coord, rect.y + rect.width)

but it should be:

dc.DrawLine(coord, rect.y, coord, rect.y + rect.height)

2) FlatNotebook has been patched with the updates sent by Dj;

3) On ==> MAC <==, CustomTreeCtrl has the following problems:

a) If an item does not have an icon associated, it is unselectable:
the event is fired but the selection is not displayed (no selection
drawing). You can try with the demo, right click on an item, choose
"Change Item Icons" and select "None" for all the icons.
b) In the same context, the popup menu that allows you to change item
icons, background, label and so on in the CustomTreeCtrl demo has some
problems. The popup menu, once a selection has been made, calls a
method. If, at the end of this method there is an "event.Skip()", MAC
starts to repeatedly call this method ad infinitum. So, either there
is a problem with event.Skip(), or with popup menu, or something else.

I have no direct grasp of the latest 2 problems, but a user reported
those behaviors. Robin/Kevin, any idea about these issues?

For those who still use ButtonPanel and FlatNotebook from my website,
I have uploaded the latest versions (but you should use the wx.lib
one!) here:

http://xoomer.alice.it/infinity77/eng/freeware.html#flatnotebook
http://xoomer.alice.it/infinity77/eng/freeware.html#buttonpanel

Happy wxPythoning :wink:

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/

Andrea Gavana wrote:

2) FlatNotebook has been patched with the updates sent by Dj;

What about the latest patch, have you verified it yet? (Hiding single tab)

3) On ==> MAC <==, CustomTreeCtrl has the following problems:

a) If an item does not have an icon associated, it is unselectable:
the event is fired but the selection is not displayed (no selection
drawing). You can try with the demo, right click on an item, choose
"Change Item Icons" and select "None" for all the icons.

This may have something to do with the new DC code on wxMac. I'll dig into it and see what's going on.

b) In the same context, the popup menu that allows you to change item
icons, background, label and so on in the CustomTreeCtrl demo has some
problems. The popup menu, once a selection has been made, calls a
method. If, at the end of this method there is an "event.Skip()", MAC
starts to repeatedly call this method ad infinitum. So, either there
is a problem with event.Skip(), or with popup menu, or something else.

Perhaps there's a loop in the event handler chain somehow, and so since you're calling Skip it keeps looking for the next binding and it eventually comes around to the same one again... For now I'll just remove those Skips from the demo.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Hi Robin & NG,

> 2) FlatNotebook has been patched with the updates sent by Dj;

What about the latest patch, have you verified it yet? (Hiding single tab)

I have tested it right now. It works, at least on Windows (I'll try it
this evening on Ubuntu).

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/