Module Expr Str Import alias Assign NameStore Num ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword TupleLoad Num Num keyword BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareNotIn NameLoad TupleLoad Str Str Str Str body Raise Call NameLoad Str If BoolOpOr CompareEq NameLoad Str BoolOpAnd CompareEq NameLoad Str CompareGt Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpOr CompareEq NameLoad Str BoolOpAnd CompareEq NameLoad Str CompareGt Call NameLoad NameLoad Num body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad NameLoad keyword Lambda arguments args NameParam defaults AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str For NameStore NameLoad body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore TupleLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad While NameLoad body If CompareEq Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr attr Call AttributeLoad Call AttributeLoad NameLoad attr attr body Return NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad While NameLoad body Expr Yield NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Num AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Str SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list
N/A N/A A generic, extensible preferences dialog

Usage:

    dialog = PreferenceEditor(parent, title, preferences, style)
    dialog.ShowModal()

preferences is a any object with attribute preferecne_panels, which in turn
is a list or tuple of classes that inherit from PreferencesPanel.

style may have any of the values "auto", "notebook", "tree" or
"single". If style is "auto", the choice of using a single window, a
notebook, or a tree will depend on how many pages will be in the
dialog.

 N/A wx N/A TREE_THRESHOLD 5 PreferenceEditor N/A N/A wx Dialog N/A N/A A dialog for showing the preference panels __init__ N/A N/A self parent title preferences style N/A auto N/A N/A N/A N/A N/A wx Dialog __init__ self parent N/A wx ID_ANY title size N/A 800 500 style N/A N/A wx RESIZE_BORDER N/A wx DEFAULT_DIALOG_STYLE N/A N/A N/A self Bind N/A wx EVT_CLOSE N/A self OnClose N/A N/A self _current_panel None N/A N/A self _panels N/A N/A N/A self _settings N/A preferences settings N/A N/A self _closing False N/A panels N/A preferences preference_panels N/A N/A style N/A tree notebook single auto N/A N/A N/A Exception invalid style; must be one of 'tree','notebook','single' or 'auto' N/A N/A N/A style tree N/A N/A style auto N/A N/A len panels TREE_THRESHOLD N/A N/A N/A self _sw N/A N/A wx SplitterWindow self N/A wx ID_ANY style N/A N/A wx SP_LIVE_UPDATE N/A wx SP_3D N/A N/A self _tree N/A N/A wx TreeCtrl N/A self _sw N/A wx ID_ANY style N/A N/A wx TR_HIDE_ROOT N/A wx TR_HAS_BUTTONS N/A N/A self _container N/A PanelContainer N/A self _sw N/A wx ID_ANY N/A N/A N/A N/A self _sw SplitVertically N/A self _tree N/A self _container 210 N/A sizer N/A N/A wx BoxSizer N/A wx VERTICAL N/A N/A N/A sizer Add N/A self _sw 1 N/A wx EXPAND N/A N/A N/A N/A self _tree Bind N/A wx EVT_TREE_SEL_CHANGED N/A self OnTreeSelection N/A N/A N/A self _populate_tree panels N/A N/A N/A N/A self _tree SelectItem N/A N/A N/A N/A self _tree GetFirstChild N/A N/A N/A self _tree GetRootItem N/A 0 N/A N/A N/A self SetSizer sizer N/A N/A N/A N/A style notebook N/A N/A style auto N/A N/A len panels 1 N/A N/A N/A self _notebook N/A N/A wx Notebook self N/A panel_class N/A sorted panels key N/A N/A N/A p N/A N/A p location N/A N/A container N/A PanelContainer N/A self _notebook N/A panel N/A N/A container AddPanel panel_class N/A N/A N/A container ShowPanel panel N/A N/A N/A N/A self _notebook AddPage container N/A N/A panel GetTitle N/A sizer N/A N/A wx BoxSizer N/A wx VERTICAL N/A N/A N/A sizer Add N/A self _notebook 1 N/A wx EXPAND N/A N/A N/A self SetSizer sizer N/A N/A N/A self _container N/A PanelContainer self N/A wx ID_ANY N/A sizer N/A N/A wx BoxSizer N/A wx VERTICAL N/A N/A N/A sizer Add N/A self _container 1 N/A wx EXPAND N/A N/A N/A self SetSizer sizer N/A panel N/A N/A N/A self _container AddPanel N/A panels N/A 0 N/A N/A N/A N/A self _container ShowPanel panel N/A OnClose N/A N/A self evt N/A N/A N/A N/A self _closing True N/A N/A N/A evt Skip N/A OnTreeSelection N/A N/A self event N/A N/A N/A Show panel that corresponds to selected tree item

        Used only when the hierarchical tree is shown.
         N/A N/A self _closing N/A N/A N/A instance_or_class N/A N/A N/A self _tree GetItemPyData N/A N/A event GetItem N/A N/A isinstance instance_or_class N/A wx Panel N/A N/A panel instance_or_class N/A N/A panel N/A N/A N/A self _container AddPanel instance_or_class N/A self _settings N/A N/A N/A N/A self _panels append panel N/A N/A N/A N/A self _tree SetItemPyData N/A N/A event GetItem panel N/A N/A N/A N/A self _container ShowPanel panel N/A _populate_tree N/A N/A self panels N/A N/A N/A Recreate the hierarchical tree of preferences panels

        Used only when the hierarchical tree is shown.
         N/A N/A N/A N/A self _tree AddRoot Root N/A panel_class panels N/A N/A location N/A panel_class location N/A N/A N/A isinstance location tuple N/A N/A location N/A location N/A item N/A N/A self _get_item location N/A N/A N/A N/A self _tree SetItemPyData item panel_class N/A N/A N/A N/A self _tree ExpandAll N/A _get_item N/A N/A self location N/A N/A N/A item N/A N/A N/A self _tree GetRootItem N/A text location N/A N/A item N/A N/A self _get_child_item item text N/A item N/A _get_child_item N/A N/A self parent text N/A N/A N/A Returns the tree item with the given text under the given parent

        This will create the item if it doesn't exist
         N/A N/A N/A N/A self _tree ItemHasChildren parent N/A N/A N/A item cookie N/A N/A N/A self _tree GetFirstChild parent N/A item N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A self _tree GetItemText item strip lower N/A N/A N/A N/A text strip lower N/A N/A item N/A N/A item cookie N/A N/A N/A self _tree GetNextChild parent cookie N/A item N/A N/A N/A self _tree AppendItem parent text N/A item N/A _get_children N/A N/A self parent N/A N/A N/A N/A N/A N/A self _tree ItemHasChildren parent N/A N/A N/A item cookie N/A N/A N/A self _tree GetFirstChild parent N/A item N/A N/A N/A item N/A N/A item cookie N/A N/A N/A self _tree GetNextChild parent cookie N/A N/A PanelContainer N/A N/A wx Panel N/A N/A This contains a preference panel.

    This container has the ability to hold several panels,
    and to be able to switch between them. For some modes, however,
    the container will only hold a single panel.

    Each page has a title area, and an area for a preferences panel
     __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super PanelContainer self __init__ args kwargs N/A N/A self _current_panel None N/A N/A self title N/A N/A wx StaticText self label Your message here N/A N/A self panels_container N/A N/A wx Panel self N/A sizer N/A N/A wx BoxSizer N/A wx VERTICAL N/A N/A N/A sizer Add N/A self title 0 N/A N/A N/A wx TOP N/A wx LEFT N/A wx EXPAND 4 N/A N/A N/A sizer Add N/A N/A wx StaticLine self 0 N/A N/A N/A wx EXPAND N/A wx TOP N/A wx BOTTOM 4 N/A N/A N/A sizer Add N/A self panels_container 1 N/A wx EXPAND N/A N/A N/A self SetSizer sizer N/A N/A N/A N/A self panels_container SetSizer N/A N/A wx BoxSizer N/A wx VERTICAL N/A font N/A N/A N/A self title GetFont N/A N/A N/A font SetPointSize N/A N/A N/A font GetPointSize 2 N/A N/A N/A N/A self title SetFont font N/A N/A N/A N/A self title SetForegroundColour #000000 N/A AddPanel N/A N/A self panel_class settings N/A N/A N/A Add a panel to the dialog N/A panel N/A panel_class parent N/A self panels_container settings settings N/A N/A N/A N/A N/A N/A self panels_container GetSizer Add panel 1 N/A wx EXPAND N/A panel N/A ShowPanel N/A N/A self panel N/A N/A N/A Arrange for the given panel to be shown N/A N/A N/A self _current_panel None N/A N/A N/A N/A N/A self _current_panel Hide N/A N/A self _current_panel panel N/A N/A N/A panel Show N/A sizer N/A N/A N/A self panels_container GetSizer N/A item N/A N/A sizer GetItem panel N/A title N/A getattr panel title N/A N/A panel location N/A -1 N/A N/A N/A N/A self title SetLabel title N/A N/A item None N/A N/A N/A N/A sizer Add panel 1 N/A wx EXPAND N/A N/A N/A sizer Layout N/A SetTitle N/A N/A self title N/A N/A N/A Set the title of the panel N/A N/A N/A N/A self title SetLabel title N/A N/A