treectrl - getselection

What am I missing? According to the documentation,

"wxTreeCtrl::GetSelection...Returns the selection, or an invalid item if
there is no selection." Shouldn't this be enough to raise the exception?

It doesn't raise an exception. You can check wxTreeItemId.IsOk() to test if
there is a selection. The methods on wxTreeItemId can be found in
controls2.py in wxPython directory.

HTH
-Rick King
Southfield MI