phoenix_title wx.lib.combotreebox.MSWComboTreeBox

MSWComboTreeBox adds one piece of functionality as compared to NativeComboTreeBox: when the user browses through the tree, the ComboTreeBox’s text field is continuously updated to show the currently selected item in the tree. If the user cancels selecting a new item from the tree, e.g. by hitting escape, the previous value (the one that was selected before the PopupFrame was popped up) is restored.


class_hierarchy Class Hierarchy

Inheritance diagram for class MSWComboTreeBox:

super_classes Known Superclasses

wx.lib.combotreebox.NativeComboTreeBox


method_summary Methods Summary

NotifyNoItemSelected

Restore the value copied previously, because the user has

OnSelectionChangedInTree

Popup

Extend Popup to store a copy of the current value, so we can

SetValue

Extend SetValue to also select the text in the


api Class API

class MSWComboTreeBox(NativeComboTreeBox)

MSWComboTreeBox adds one piece of functionality as compared to NativeComboTreeBox: when the user browses through the tree, the ComboTreeBox’s text field is continuously updated to show the currently selected item in the tree. If the user cancels selecting a new item from the tree, e.g. by hitting escape, the previous value (the one that was selected before the PopupFrame was popped up) is restored.


Methods

NotifyNoItemSelected(self, *args, **kwargs)

Restore the value copied previously, because the user has not selected a new value.



OnSelectionChangedInTree(self, event)


Popup(self, *args, **kwargs)

Extend Popup to store a copy of the current value, so we can restore it later (in NotifyNoItemSelected). This is necessary because MSWComboTreeBox will change the value as the user browses through the items in the popped up tree.



SetValue(self, value)

Extend SetValue to also select the text in the ComboTreeBox’s text field.

Parameters:

value (string) – set the value and select it