Module Expr Str ImportFrom alias Import alias alias Import alias Import alias Import alias Import alias Import alias Import alias identifier Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Num keyword Num keyword Num keyword Num keyword Num keyword Num keyword Num keyword Num keyword Num keyword Num keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad keyword BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str decorator_list Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Str ClassDef bases AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Assign NameStore ListLoad AttributeLoad NameLoad attr Assign NameStore TupleLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Print TupleLoad Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Num body Return AttributeLoad NameLoad attr orelse If CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad Str body Return AttributeLoad NameLoad attr orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad FunctionDef arguments args defaults vararg kwarg body Return Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Return Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Return Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr Num Assign NameStore BinOpAdd AttributeLoad NameLoad attr Num Assign NameStore Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore BinOpSub BinOpSub BinOpSub BinOpSub NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Num Assign NameStore NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore ListLoad TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd Call NameLoad AttributeLoad NameLoad attr IfExp AttributeLoad NameLoad attr Num Num Assign NameStore ListLoad Assign NameStore AttributeLoad NameLoad attr For TupleStore NameStore TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore BinOpAdd BinOpAdd NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad Str Str orelse If Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad Str Str orelse If Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad Str Str orelse If Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad Str NameLoad orelse If CompareEq Call AttributeLoad NameLoad attr Str body Assign TupleStore NameStore NameStore TupleLoad Str Str orelse Assign TupleStore NameStore NameStore TupleLoad Str NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad BinOpAdd AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpBitOr NameLoad AttributeLoad NameLoad attr If CompareNotEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Num If CompareEq TupleLoad NameLoad NameLoad TupleLoad Str Str body AugAssignBitOr NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq TupleLoad NameLoad NameLoad TupleLoad Str Str body AugAssignBitOr NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body If CompareIsNot NameLoad NameLoad body Raise Call NameLoad Str AugAssignBitOr NameStore BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMult Num AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body AugAssignBitOr NameStore BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpSub AttributeLoad NameLoad attr IfExp NameLoad AttributeLoad NameLoad attr Num If CompareIn Str Call NameLoad NameLoad body AugAssignBitOr NameStore AttributeLoad NameLoad attr Assign NameStore NameStore BinOpMult AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Num If CompareEq NameLoad Str body AugAssignBitOr NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body AugAssignBitOr NameStore AttributeLoad NameLoad attr orelse Raise Call NameLoad Str Str Num Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad BinOpAdd AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad BinOpBitOr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str Str BinOpAdd AttributeLoad NameLoad attr NameLoad TupleLoad BinOpAdd BinOpAdd NameLoad NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpBitOr BinOpBitOr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpAdd NameLoad AttributeLoad NameLoad attr AugAssignAdd NameStore Num If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore BinOpSub AttributeLoad NameLoad attr BinOpMult Num AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad BinOpAdd AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad BinOpBitOr NameLoad NameLoad AugAssignAdd NameStore BinOpAdd NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpBitOr BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad NameLoad TupleLoad BinOpSub AttributeLoad NameLoad attr BinOpMult BinOpAdd NameLoad Num BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad AugAssignAdd NameStore BinOpAdd NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num ListLoad AttributeLoad NameLoad attr TupleLoad Num Num AttributeLoad NameLoad attr NameLoad NameLoad NameLoad TupleLoad Num Str NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr Num body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad If NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpBitOr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num BinOpDiv BinOpMult Num Num Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BoolOpOr AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad BinOpAdd NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad BinOpDiv BinOpSub NameLoad NameLoad Num Assign NameStore Call NameLoad Call NameLoad BinOpDiv BinOpSub NameLoad NameLoad Num Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad BinOpSub NameLoad BinOpDiv NameLoad Num Assign NameStore Call NameLoad Call NameLoad BinOpSub NameLoad BinOpDiv NameLoad Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad Num Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryFinally body Assign TupleStore NameStore NameStore Call NameLoad GeneratorExp Call NameLoad AttributeLoad NameLoad attr NameLoad BoolOpOr NameLoad Str comprehension TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr finalbody Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad For TupleStore NameStore TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareIsNot NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad BinOpSub NameLoad NameLoad NameLoad Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad If NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore BinOpSub BinOpSub NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad NameLoad orelse Assign NameStore Num orelse Assign NameStore NameStore Num Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpSub BinOpSub NameLoad AttributeLoad NameLoad attr NameLoad IfExp NameLoad BinOpAdd NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad BinOpSub NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad BinOpMult Num AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad BinOpSub NameLoad NameLoad NameLoad For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad BinOpSub NameLoad BinOpMult BinOpAdd NameLoad Num BinOpAdd AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad NameLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Return NameLoad orelse Return Call AttributeLoad NameLoad attr Str orelse If CompareEq NameLoad Str body Return Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Num Num orelse If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index BinOpSub NameLoad AttributeLoad NameLoad attr Return SubscriptLoad NameLoad Index Call NameLoad NameLoad AttributeLoad NameLoad attr Num Num orelse If CompareEq NameLoad Str body Return NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad Str body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr Str Str attr Str Str Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Num orelse If CompareEq NameLoad Str body For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Num Num orelse If CompareEq NameLoad Str body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad TupleLoad Num Num Num Num body Return Num Assign NameStore Str Assign NameStore BinOpMult Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Num SubscriptStore NameLoad Index Num BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Return Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body For NameStore NameLoad body If CompareNotEq Call NameLoad AttributeLoad NameLoad attr NameLoad Num AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Break orelse Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Expr Call NameLoad Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list Assign AttributeStore NameLoad attr ListLoad For TupleStore NameStore TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body TryExcept body If NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str attr orelse Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str attr Str Str Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str For NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword TupleLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr ListLoad If AttributeLoad NameLoad attr body Expr TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index BinOpSub NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareLtELt AttributeLoad NameLoad attr NameLoad BinOpAdd AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad BinOpSub BinOpAdd AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore NameLoad body If CompareLt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpAdd Call NameLoad NameLoad TupleLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr TryFinally body Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr BoolOpOr NameLoad NameLoad NameLoad Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr If CompareEq TupleLoad NameLoad NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad body Return NameLoad orelse Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr TryFinally body Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Str BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr IfExp NameLoad NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr If CompareEq TupleLoad NameLoad NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad body Return NameLoad orelse Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body If CompareIs NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr Str Str attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad ListLoad TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign AttributeStore NameLoad attr ListLoad TupleLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryFinally body Assign TupleStore NameStore NameStore Call NameLoad GeneratorExp Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Return TupleLoad NameLoad NameLoad BinOpAdd BinOpAdd NameLoad NameLoad BinOpMult Num AttributeLoad NameLoad attr NameLoad finalbody Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults Str Str body Assign NameStore Num AugAssignBitOr NameStore AttributeLoad NameLoad attr AugAssignBitOr NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Num NameLoad NameLoad NameLoad NameLoad Dict Return NameLoad decorator_list
N/A N/A Provides for simple dialog boxes, doing just enough to return input
from the user using edit controls, dropdown lists and checkboxes. Most
interaction is via the :func:`dialog`, :func:`progress_dialog` or
:func:`info_dialog` functions. This example offers the user a drop-down
list of installed Python directories, a text box to enter a size threshold and a
checkbox to indicate whether to email the result::

    from winsys import dialogs, registry
    SIZE_THRESHOLD_MB = "100"
    PYTHONREG = registry.registry(r"hklm\software\python\pythoncore")
    version, size_threshold_mb, email_result = dialogs.dialog(
        "Find big files in Python",
        ("Version", [k.InstallPath.get_value ("") for k in PYTHONREG.keys()]),
        ("Bigger than (Mb)", SIZE_THRESHOLD_MB),
        ("Email?", False)
    )

All dialogs are resizable horizontally but not vertically. All
edit boxes (fields with a default which is a string) accept file-drops,
eg from Explorer.

The standard dialog (from :func:`dialog`) is modal and returns a tuple
of values as soon as [Ok] is pressed or an empty list if [Cancel] is pressed.
The progress dialog (from :func:`progress_dialog`) is also modal, but
passes the tuple of values to a callback which yields update strings which
are then displayed in the status box on the dialog. When the callback
function completes, the dialog returns the tuple of values to the caller.
:func:`info_dialog` is intended to be used for, eg, displaying a
traceback or other bulky text for which a message box might be awkward.
It displays multiline text in a readonly edit control which can be
scrolled and select-copied.
 __future__ unicode_literals N/A os sys N/A datetime N/A functools N/A marshal N/A operator N/A pythoncom N/A winxpgui win32gui N/A pythoncom N/A win32com.server.policy N/A win32api N/A win32con N/A win32cred N/A win32event win32com.shell shell shellcon N/A win32ui N/A struct N/A threading N/A traceback N/A uuid winsys._compat * winsys core constants exc utils N/A BIF N/A N/A N/A constants Constants from_dict N/A dict BIF_RETURNONLYFSDIRS 1 BIF_DONTGOBELOWDOMAIN 2 BIF_STATUSTEXT 4 BIF_RETURNFSANCESTORS 8 BIF_EDITBOX 16 BIF_VALIDATE 32 BIF_NEWDIALOGSTYLE 64 BIF_BROWSEINCLUDEURLS 128 BIF_UAHINT 256 BIF_NONEWFOLDERBUTTON 512 BIF_NOTRANSLATETARGETS 1024 BIF_BROWSEFORCOMPUTER 4096 BIF_BROWSEFORPRINTER 8192 BIF_BROWSEINCLUDEFILES 16384 BIF_SHAREABLE 32768 pattern BIF_* N/A N/A N/A BIF update N/A dict USENEWUI N/A N/A BIF NEWDIALOGSTYLE N/A BIF EDITBOX N/A N/A N/A BIF doc Styles for browsing for a folder N/A BFFM N/A N/A N/A constants Constants from_pattern BFFM_* namespace shellcon N/A N/A N/A BFFM doc Part of the browse-for-folder shell mechanism N/A CREDUI_FLAGS N/A N/A N/A constants Constants from_pattern CREDUI_FLAGS_* namespace win32cred N/A N/A N/A CREDUI_FLAGS doc Options for username prompt UI N/A CRED_FLAGS N/A N/A N/A constants Constants from_pattern CRED_FLAGS_* namespace win32cred N/A CRED_TYPE N/A N/A N/A constants Constants from_pattern CRED_TYPE_* namespace win32cred N/A CRED_TI N/A N/A N/A constants Constants from_pattern CRED_TI_* namespace win32cred x_dialogs N/A N/A exc x_winsys N/A N/A Base for dialog-related exceptions N/A N/A WINERROR_MAP N/A N/A wrapped N/A N/A exc wrapper WINERROR_MAP x_dialogs N/A DESKTOP N/A wrapped N/A win32gui GetDesktopWindow N/A ENCODING UTF-8 _DropTarget N/A N/A N/A N/A win32com server policy DesignatedWrapPolicy N/A N/A Helper class to implement the IDropTarget interface so that
    files can be drag-dropped onto a text field in a dialog.
     N/A _reg_clsid_ {72AA1C07-73BA-4CA8-88B9-7F03FEA173E8} N/A _reg_progid_ WinSysDialogs.DropTarget N/A _reg_desc_ Drop target handler for WinSys Dialogs N/A _public_methods_ N/A DragEnter DragOver DragLeave Drop N/A _com_interfaces_ N/A N/A pythoncom IID_IDropTarget N/A _data_format N/A N/A win32con CF_HDROP None N/A pythoncom DVASPECT_CONTENT -1 N/A pythoncom TYMED_HGLOBAL __init__ N/A N/A self hwnd N/A N/A N/A N/A N/A self _wrap_ self N/A N/A self hwnd hwnd N/A DragEnter N/A N/A self data_object key_state point effect N/A N/A N/A Query the data block for a drag action which is over the dialog.
        If we can handle it, indicate that we're ready to accept a drop from
        this data.
         N/A N/A N/A N/A N/A data_object QueryGetData N/A self _data_format N/A N/A N/A N/A pywintypes error N/A N/A N/A shellcon DROPEFFECT_NONE N/A N/A N/A shellcon DROPEFFECT_COPY N/A Drop N/A N/A self data_object key_state point effect N/A N/A N/A child_point N/A wrapped N/A win32gui ScreenToClient N/A self hwnd point N/A child_hwnd N/A wrapped N/A win32gui ChildWindowFromPoint N/A self hwnd child_point N/A data N/A N/A data_object GetData N/A self _data_format N/A n_files N/A N/A shell DragQueryFileW N/A data data_handle -1 N/A n_files N/A N/A files_string N/A N/A shell DragQueryFileW N/A data data_handle 0 N/A N/A N/A type files_string files_string N/A N/A address _ N/A N/A win32gui PyGetBufferAddressAndLen N/A N/A files_string encode mbcs N/A N/A SendMessage child_hwnd N/A win32con WM_SETTEXT None N/A N/A N/A win32gui PyGetBufferAddressAndLen N/A memoryview N/A N/A files_string encode mbcs N/A 0 N/A DragOver N/A N/A self key_state point effect N/A N/A N/A If there is a drag over one of the edit fields in the dialog
        indicate that we will accept a drop, otherwise not.
         N/A child_point N/A wrapped N/A win32gui ScreenToClient N/A self hwnd point N/A child_hwnd N/A wrapped N/A win32gui ChildWindowFromPoint N/A self hwnd child_point N/A N/A child_hwnd 0 N/A N/A N/A shellcon DROPEFFECT_NONE N/A N/A N/A N/A wrapped N/A win32gui GetClassName child_hwnd Edit N/A N/A N/A shellcon DROPEFFECT_COPY N/A N/A N/A shellcon DROPEFFECT_NONE N/A DragLeave N/A N/A self N/A N/A N/A Do nothing, but the method must be implemented.
         N/A N/A N/A as_code N/A N/A text N/A N/A N/A N/A N/A N/A N/A text lower replace N/A _register_wndclass N/A N/A N/A N/A N/A Register a simple window with default cursor, icon, etc.
     N/A class_name N/A str N/A N/A uuid uuid1 N/A wc N/A wrapped N/A win32gui WNDCLASS N/A N/A N/A wc SetDialogProc N/A N/A wc hInstance N/A win32gui dllhandle N/A N/A wc lpszClassName class_name N/A N/A wc style N/A N/A win32con CS_VREDRAW N/A win32con CS_HREDRAW N/A N/A wc hCursor N/A wrapped N/A win32gui LoadCursor 0 N/A win32con IDC_ARROW N/A N/A wc hbrBackground N/A N/A win32con COLOR_WINDOW 1 N/A N/A wc lpfnWndProc N/A N/A N/A wc cbWndExtra N/A N/A win32con DLGWINDOWEXTRA N/A N/A struct calcsize Pi N/A icon_flags N/A N/A win32con LR_LOADFROMFILE N/A win32con LR_DEFAULTSIZE N/A python_exe N/A wrapped N/A win32api GetModuleHandle None N/A N/A N/A hasattr sys frozen N/A N/A N/A wc hIcon N/A wrapped N/A win32gui LoadIcon python_exe 1 N/A class_atom N/A wrapped N/A win32gui RegisterClass wc N/A class_name N/A N/A _class_name N/A _register_wndclass SendMessage N/A N/A N/A args kwargs N/A N/A N/A wrapped N/A win32gui SendMessage args kwargs N/A PostMessage N/A N/A N/A args kwargs N/A N/A N/A wrapped N/A win32gui PostMessage args kwargs N/A MoveWindow N/A N/A N/A args kwargs N/A N/A N/A wrapped N/A win32gui MoveWindow args kwargs N/A BaseDialog N/A object N/A N/A Basic template for a dialog with one or more fields plus
    [Ok] and [Cancel] buttons. A simple spacing / sizing algorithm
    is used. Most of the work is done inside :meth:`_get_dialog_template`
    which examines the incoming fields and tries to place them according
    to their various options.
     N/A WM_PROGRESS_MESSAGE N/A N/A win32con WM_USER 1 N/A WM_PROGRESS_COMPLETE N/A N/A win32con WM_USER 2 N/A IDC_LABEL_BASE 1025 N/A IDC_FIELD_BASE N/A IDC_LABEL_BASE 1000 N/A IDC_CALLBACK_BASE N/A IDC_FIELD_BASE 1000 N/A W 210 N/A GUTTER_W 5 N/A GUTTER_H 5 N/A CONTROL_H 12 N/A LABEL_W 36 N/A FIELD_W N/A N/A N/A N/A W GUTTER_W LABEL_W GUTTER_W GUTTER_W N/A BUTTON_W 36 N/A CALLBACK_W CONTROL_H N/A MAX_W 640 N/A MAX_H 480 N/A BUTTONS N/A N/A Cancel N/A win32con IDCANCEL N/A Ok N/A win32con IDOK __init__ N/A N/A self title parent_hwnd N/A 0 N/A N/A Initialise the dialog with a title and a list of fields of
        the form [(label, default), ...].
         N/A N/A wrapped N/A win32gui InitCommonControls N/A N/A wrapped N/A pythoncom OleInitialize N/A N/A self hinst N/A win32gui dllhandle N/A N/A self title title N/A N/A self parent_hwnd parent_hwnd N/A N/A self fields N/A N/A N/A self _progress_id None N/A _get_dialog_template N/A N/A self N/A N/A N/A Put together a sensible default layout for this dialog, taking
        into account the default structure and the (variable) number of fields.

        NB Although sensible default positions are chosen here, the horizontal
        layout will be overridden by the :meth:`_resize` functionality below.
         N/A dlg_class_name N/A _register_wndclass N/A style N/A reduce N/A operator or_ N/A N/A win32con WS_THICKFRAME N/A win32con WS_POPUP N/A win32con WS_VISIBLE N/A win32con WS_CAPTION N/A win32con WS_SYSMENU N/A win32con DS_SETFONT N/A win32con WS_MINIMIZEBOX N/A cs N/A N/A win32con WS_CHILD N/A win32con WS_VISIBLE N/A n_fields N/A N/A len N/A self fields N/A N/A self progress_callback 1 0 N/A dlg N/A N/A control_t N/A self GUTTER_H N/A N/A i N/A field default_value callback N/A enumerate N/A self fields N/A N/A label_l N/A self GUTTER_W N/A label_t control_t N/A field_l N/A N/A label_l N/A self LABEL_W N/A self GUTTER_W N/A field_t label_t N/A display_h field_h N/A self CONTROL_H N/A N/A field None N/A N/A N/A field_type sub_type N/A EDIT READONLY N/A N/A N/A isinstance default_value bool N/A N/A N/A field_type sub_type N/A BUTTON CHECKBOX N/A N/A N/A isinstance default_value tuple N/A N/A N/A field_type sub_type N/A BUTTON RADIOBUTTON N/A N/A N/A isinstance default_value list N/A N/A N/A field_type sub_type N/A COMBOBOX None N/A N/A N/A N/A N/A field upper PASSWORD N/A N/A N/A field_type sub_type N/A EDIT PASSWORD N/A N/A N/A field_type sub_type N/A EDIT None N/A N/A N/A dlg append N/A STATIC field N/A N/A self IDC_LABEL_BASE i N/A label_l label_t N/A self LABEL_W N/A self CONTROL_H N/A cs N/A win32con SS_LEFT N/A N/A field_type STATIC N/A N/A field_styles N/A win32con WS_TABSTOP N/A N/A field_styles 0 N/A N/A N/A field_type sub_type N/A BUTTON CHECKBOX N/A N/A field_styles N/A win32con BS_AUTOCHECKBOX N/A field_w N/A self CONTROL_H N/A N/A N/A N/A field_type sub_type N/A BUTTON RADIOBUTTON N/A N/A field_styles N/A win32con BS_AUTORADIOBUTTON N/A field_w N/A self CONTROL_H N/A N/A N/A field_type COMBOBOX N/A N/A N/A callback None N/A N/A N/A x_dialogs Cannot combine a list with a callback N/A field_styles N/A N/A win32con CBS_DROPDOWNLIST N/A win32con WS_VSCROLL N/A field_w N/A self FIELD_W N/A field_h N/A 8 N/A self CONTROL_H N/A display_h N/A self CONTROL_H N/A N/A N/A field_type EDIT N/A N/A field_styles N/A N/A N/A win32con WS_BORDER N/A win32con ES_AUTOHSCROLL N/A win32con ES_AUTOVSCROLL N/A field_w N/A N/A self FIELD_W N/A callback N/A self CALLBACK_W 0 N/A N/A N/A unicode default_value N/A N/A field_styles N/A win32con ES_MULTILINE N/A display_h field_h N/A N/A self CONTROL_H N/A min N/A N/A default_value count 10 N/A N/A sub_type READONLY N/A N/A field_styles N/A win32con ES_READONLY N/A N/A sub_type PASSWORD N/A N/A field_styles N/A win32con ES_PASSWORD N/A N/A N/A x_dialogs Problemo _get_dialog_template 0 N/A N/A N/A dlg append N/A field_type None N/A N/A self IDC_FIELD_BASE i N/A field_l field_t field_w field_h N/A cs field_styles N/A callback N/A N/A N/A N/A dlg append N/A BUTTON ... N/A N/A self IDC_CALLBACK_BASE i N/A N/A N/A field_l field_w N/A self GUTTER_W field_t N/A self CALLBACK_W N/A self CONTROL_H N/A N/A cs N/A win32con WS_TABSTOP N/A win32con BS_PUSHBUTTON N/A control_t N/A display_h N/A self GUTTER_H N/A i 1 N/A N/A self progress_callback N/A N/A N/A self _progress_id N/A N/A self IDC_FIELD_BASE i N/A field_t control_t N/A field_w N/A N/A self W N/A 2 N/A self GUTTER_W N/A field_l N/A self GUTTER_W N/A field_h N/A self CONTROL_H N/A field_styles N/A win32con SS_LEFT N/A N/A N/A dlg append N/A STATIC None N/A N/A self IDC_FIELD_BASE i N/A field_l field_t field_w field_h N/A cs field_styles N/A control_t N/A field_h N/A self GUTTER_H N/A cs N/A N/A N/A N/A win32con WS_CHILD N/A win32con WS_VISIBLE N/A win32con WS_TABSTOP N/A win32con BS_PUSHBUTTON N/A button_t control_t N/A N/A i N/A caption id N/A enumerate N/A reversed N/A self BUTTONS N/A N/A field_h N/A self CONTROL_H N/A N/A N/A dlg append N/A BUTTON caption id N/A N/A N/A self W N/A N/A i 1 N/A N/A self GUTTER_W N/A self BUTTON_W button_t N/A self BUTTON_W field_h cs N/A control_t N/A field_h N/A self GUTTER_H N/A N/A N/A dlg insert 0 N/A N/A self title N/A 0 0 N/A self W control_t style None N/A 9 Lucida Sans Unicode None dlg_class_name N/A dlg N/A N/A Dialog N/A BaseDialog N/A N/A A general-purpose dialog class for collecting arbitrary information in
    text strings and handing it back to the user. Only Ok & Cancel buttons are
    allowed, and all the fields are considered to be strings. The list of
    fields is of the form: [(label, default), ...] and the values are saved
    in the same order.
     __init__ N/A N/A self title fields progress_callback parent_hwnd N/A N/A core UNSET 0 N/A N/A Initialise the dialog with a title and a list of fields of
        the form [(label, default), ...].
         N/A N/A N/A BaseDialog __init__ self title parent_hwnd N/A N/A self progress_callback progress_callback N/A N/A self fields N/A list fields N/A N/A N/A self fields N/A N/A N/A RuntimeError Must pass at least one field N/A N/A self results N/A N/A N/A self progress_thread N/A core UNSET N/A N/A self progress_cancelled N/A N/A win32event CreateEvent None 1 0 None N/A run N/A N/A self N/A N/A N/A The heart of the dialog box functionality. The call to DialogBoxIndirect
        kicks off the dialog's message loop, finally returning via the EndDialog call
        in OnCommand
         N/A message_map N/A N/A win32con WM_COMMAND N/A win32con WM_INITDIALOG N/A win32con WM_SIZE N/A win32con WM_GETMINMAXINFO N/A self WM_PROGRESS_MESSAGE N/A self WM_PROGRESS_COMPLETE N/A self OnCommand N/A self OnInitDialog N/A self OnSize N/A self OnMinMaxInfo N/A self OnProgressMessage N/A self OnProgressComplete N/A N/A wrapped N/A win32gui DialogBoxIndirect N/A self hinst N/A N/A self _get_dialog_template N/A self parent_hwnd message_map N/A corners N/A N/A self l t r b N/A N/A N/A Designed to be subclassed (eg by :class:`InfoDialog`). By
        default simply returns the values unchanged.
         N/A N/A l t r b N/A OnInitDialog N/A N/A self hwnd msg wparam lparam N/A N/A N/A Attempt to position the dialog box more or less in
        the middle of its parent (possibly the desktop). Then
        force a resize of the dialog controls which should take
        into account the different label lengths and the dialog's
        new size.
         N/A N/A self hwnd hwnd N/A False N/A N/A N/A wrapped N/A win32gui SetWindowLong N/A self hwnd N/A win32con GWL_EXSTYLE N/A N/A win32con WS_EX_LAYERED N/A wrapped N/A win32gui GetWindowLong N/A self hwnd N/A win32con GWL_EXSTYLE N/A N/A wrapped N/A win32gui SetLayeredWindowAttributes N/A self hwnd 255 N/A N/A 255 80 100 N/A win32con LWA_ALPHA N/A N/A N/A pythoncom RegisterDragDrop hwnd N/A N/A pythoncom WrapObject N/A _DropTarget hwnd N/A pythoncom IID_IDropTarget N/A pythoncom IID_IDropTarget N/A N/A i N/A field default callback N/A enumerate N/A self fields N/A N/A id N/A N/A self IDC_FIELD_BASE i N/A N/A N/A self _set_item id default N/A parent N/A N/A self parent_hwnd DESKTOP N/A N/A l t r b N/A N/A self corners N/A wrapped N/A win32gui GetWindowRect N/A self hwnd N/A r N/A min r N/A l N/A self MAX_W N/A N/A dt_l dt_t dt_r dt_b N/A wrapped N/A win32gui GetWindowRect parent N/A cx N/A int N/A round N/A N/A dt_r dt_l 2 N/A cy N/A int N/A round N/A N/A dt_b dt_t 2 N/A N/A centre_x centre_y N/A wrapped N/A win32gui ClientToScreen parent N/A cx cy N/A dx N/A int N/A round N/A centre_x N/A r 2 N/A dy N/A int N/A round N/A centre_y N/A b 2 N/A N/A wrapped N/A win32gui MoveWindow N/A self hwnd dx dy N/A r l N/A b t 0 N/A N/A l t r b N/A wrapped N/A win32gui GetClientRect N/A self hwnd N/A N/A N/A self _resize N/A r l N/A b t 0 N/A True N/A _resize N/A N/A self dialog_w dialog_h repaint N/A 1 N/A N/A Attempt to resize the controls on the dialog, spreading
        then horizontally to cover the full extent of the dialog
        box, with left-aligned labels and right-aligned buttons.
         coords N/A N/A hwnd id N/A N/A N/A ctrl N/A wrapped N/A win32gui GetDlgItem hwnd id N/A N/A l t r b N/A wrapped N/A win32gui GetWindowRect ctrl N/A N/A l t N/A wrapped N/A win32gui ScreenToClient hwnd N/A l t N/A N/A r b N/A wrapped N/A win32gui ScreenToClient hwnd N/A r b N/A N/A ctrl l t r b N/A N/A hDC N/A wrapped N/A win32gui GetDC N/A self hwnd N/A N/A N/A N/A label_w label_h N/A max N/A N/A wrapped N/A win32gui GetTextExtentPoint32 hDC N/A label N/A N/A label _ _ N/A self fields N/A N/A N/A wrapped N/A win32gui ReleaseDC N/A self hwnd hDC N/A N/A i N/A field default callback N/A enumerate N/A self fields N/A N/A N/A field None N/A N/A N/A label l t r b N/A coords N/A self hwnd N/A N/A self IDC_LABEL_BASE i N/A N/A wrapped N/A win32gui MoveWindow label N/A self GUTTER_W t label_w N/A b t repaint N/A label_r N/A N/A self GUTTER_W label_w N/A callback N/A N/A N/A callback_button l t r b N/A coords N/A self hwnd N/A N/A self IDC_CALLBACK_BASE i N/A callback_w N/A r l N/A callback_l N/A N/A dialog_w N/A self GUTTER_W callback_w N/A N/A MoveWindow callback_button callback_l t N/A r l N/A b t repaint N/A N/A callback_w 0 N/A N/A label_r callback_w 0 N/A N/A field l t r b N/A coords N/A self hwnd N/A N/A self IDC_FIELD_BASE i N/A field_l N/A label_r N/A self GUTTER_W N/A field_w N/A N/A N/A dialog_w N/A self GUTTER_W field_l N/A callback_w N/A callback_w N/A self GUTTER_W 0 N/A N/A MoveWindow field field_l t field_w N/A b t repaint N/A N/A self _progress_id N/A N/A N/A field l t r b N/A coords N/A self hwnd N/A self _progress_id N/A field_w N/A dialog_w N/A 2 N/A self GUTTER_W N/A N/A MoveWindow field l t field_w N/A b t repaint N/A N/A i N/A caption id N/A enumerate N/A reversed N/A self BUTTONS N/A N/A N/A button l t r b N/A coords N/A self hwnd id N/A N/A MoveWindow button N/A dialog_w N/A N/A i 1 N/A N/A self GUTTER_W N/A r l t N/A r l N/A b t repaint N/A _get_item N/A N/A self item_id N/A N/A N/A Return the current value of an item in the dialog.
         N/A hwnd N/A wrapped N/A win32gui GetDlgItem N/A self hwnd item_id N/A class_name N/A wrapped N/A win32gui GetClassName hwnd N/A N/A class_name Edit N/A N/A value N/A wrapped N/A win32gui GetDlgItemText N/A self hwnd item_id N/A N/A isinstance value unicode N/A N/A value N/A N/A N/A N/A value decode mbcs N/A N/A N/A class_name Button N/A N/A N/A bool N/A SendMessage hwnd N/A win32con BM_GETCHECK 0 0 N/A N/A N/A class_name ComboBox N/A N/A N/A field default callback N/A N/A self fields N/A N/A item_id N/A self IDC_FIELD_BASE N/A N/A default N/A N/A SendMessage hwnd N/A win32con CB_GETCURSEL 0 0 N/A N/A N/A class_name Static N/A N/A None N/A N/A N/A RuntimeError N/A Unknown class: %s class_name N/A _set_item N/A N/A self item_id value N/A N/A N/A Set the current value of an item in the dialog
         N/A item_hwnd N/A wrapped N/A win32gui GetDlgItem N/A self hwnd item_id N/A class_name N/A wrapped N/A win32gui GetClassName item_hwnd N/A styles N/A wrapped N/A win32gui GetWindowLong N/A self hwnd N/A win32con GWL_STYLE N/A N/A class_name Edit N/A N/A N/A isinstance value N/A datetime date N/A N/A value N/A N/A value strftime %d %b %Y N/A value N/A N/A N/A N/A N/A unicode value replace replace N/A N/A wrapped N/A win32gui SetDlgItemText N/A self hwnd item_id value N/A N/A N/A class_name Button N/A N/A N/A SendMessage item_hwnd N/A win32con BM_SETCHECK N/A int value 0 N/A N/A N/A class_name ComboBox N/A N/A item value N/A N/A N/A isinstance item tuple N/A N/A item N/A item N/A 0 N/A N/A SendMessage item_hwnd N/A win32con CB_ADDSTRING 0 N/A N/A utils string_as_pointer N/A str item N/A N/A SendMessage item_hwnd N/A win32con CB_SETCURSEL 0 0 N/A N/A N/A class_name Static N/A N/A N/A wrapped N/A win32gui SetDlgItemText N/A self hwnd item_id N/A unicode value N/A N/A N/A RuntimeError N/A Unknown class: %s class_name N/A OnSize N/A N/A self hwnd msg wparam lparam N/A N/A N/A If the dialog box is resized, force a corresponding resize
        of the controls
         N/A w N/A N/A win32api LOWORD lparam N/A h N/A N/A win32api HIWORD lparam N/A N/A N/A self _resize w h N/A 0 N/A OnMinMaxInfo N/A N/A self hwnd msg wparam lparam N/A N/A N/A Prevent the dialog from resizing vertically by extracting
        the window's current size and using the minmaxinfo message
        to set the maximum & minimum window heights to be its current height.
         N/A N/A dlg_l dlg_t dlg_r dlg_b N/A wrapped N/A win32gui GetWindowRect hwnd N/A N/A N/A wrapped N/A win32gui GetClientRect hwnd N/A 0 0 0 0 N/A N/A 0 N/A POINT_FORMAT LL N/A MINMAXINO_FORMAT N/A 5 POINT_FORMAT N/A data N/A N/A win32gui PyGetMemory lparam N/A N/A struct calcsize MINMAXINO_FORMAT N/A minmaxinfo N/A list N/A N/A struct unpack MINMAXINO_FORMAT data N/A N/A minmaxinfo N/A 9 N/A minmaxinfo N/A 7 N/A dlg_b dlg_t N/A N/A N/A win32gui PySetMemory lparam N/A N/A struct pack MINMAXINO_FORMAT minmaxinfo N/A 0 N/A _enable N/A N/A self id allow N/A True N/A N/A Convenience function to enable or disable a control by id
         N/A N/A wrapped N/A win32gui EnableWindow N/A wrapped N/A win32gui GetDlgItem N/A self hwnd id allow N/A OnProgressMessage N/A N/A self hwnd msg wparam lparam N/A N/A N/A Respond to a progress update from within the progress
        thread. LParam will be a pointer to a string containing
        a utf8-encoded string which is to be displayed in the
        dialog's progress static.
         N/A message N/A N/A marshal loads N/A N/A win32gui PyGetString lparam wparam N/A N/A N/A self _set_item N/A self _progress_id message N/A OnProgressComplete N/A N/A self hwnd msg wparam lparam N/A N/A N/A Respond to the a message signalling that all processing is
        now complete by re-enabling the ok button, disabling cancel,
        and setting focus to the ok so a return or space will close
        the dialog.
         N/A N/A N/A message N/A N/A marshal loads N/A N/A win32gui PyGetString lparam wparam N/A N/A N/A ValueError N/A N/A message - Complete - N/A N/A N/A self _set_item N/A self _progress_id message N/A N/A N/A self _enable N/A win32con IDCANCEL False N/A N/A N/A self _enable N/A win32con IDOK True N/A N/A PostMessage N/A self hwnd N/A win32con WM_QUIT 0 0 N/A _progress_complete N/A N/A self message N/A N/A N/A Convenience function to tell the dialog that progress is complete,
        passing a message along which will be displayed in the progress box
         N/A _message N/A buffer N/A N/A marshal dumps message N/A N/A address length N/A N/A win32gui PyGetBufferAddressAndLen _message N/A N/A PostMessage N/A self hwnd N/A self WM_PROGRESS_COMPLETE length address N/A _progress_message N/A N/A self message N/A N/A N/A Convenience function to send progress messages to the dialog
         N/A _message N/A buffer N/A N/A marshal dumps message N/A N/A address length N/A N/A win32gui PyGetBufferAddressAndLen _message N/A N/A SendMessage N/A self hwnd N/A self WM_PROGRESS_MESSAGE length address N/A OnOk N/A N/A self hwnd N/A N/A N/A When OK is pressed, if this isn't a progress dialog then simply
        gather the results and return. If this is a progress dialog then
        start a thread to handle progress via the progress iterator.
         progress_thread N/A N/A iterator cancelled N/A N/A N/A Handle the progress side of the dialog by iterating over a supplied
            iterator(presumably a generator) sending generated values as messages
            to the progress box -- these might be percentages or files processed
            or whatever.

            If the user cancels, an event will be fired which is detected here and
            the iteration broken. Likewise an exception will be logged to the usual
            places and a suitable message sent.
             N/A N/A N/A message iterator N/A N/A N/A N/A wrapped N/A win32event WaitForSingleObject cancelled 0 N/A win32event WAIT_TIMEOUT N/A N/A N/A N/A self _progress_complete User cancelled N/A N/A N/A N/A N/A self _progress_message message N/A N/A N/A N/A N/A info_dialog An error occurred: please contact the Helpdesk N/A N/A traceback format_exc hwnd N/A N/A N/A self _progress_complete An error occurred N/A N/A N/A N/A self _progress_complete Complete N/A N/A N/A self results N/A N/A N/A i N/A field default_value callback N/A enumerate N/A self fields N/A N/A value N/A N/A self _get_item N/A N/A self IDC_FIELD_BASE i N/A N/A isinstance default_value N/A datetime date N/A N/A N/A N/A value N/A N/A value N/A N/A N/A N/A N/A datetime datetime strptime value %d %b %Y date N/A N/A value None N/A N/A N/A ValueError N/A N/A N/A N/A win32api MessageBox hwnd N/A Dates must look like:
%s N/A N/A N/A N/A N/A N/A N/A datetime date today strftime %d %b %Y lstrip 0 Invalid Date N/A N/A N/A N/A N/A self results append value N/A N/A self progress_callback N/A N/A N/A N/A self _set_item N/A self _progress_id Working... N/A i N/A range N/A len N/A self fields N/A N/A N/A N/A self _enable N/A N/A self IDC_FIELD_BASE i False N/A N/A N/A self _enable N/A win32con IDOK False N/A N/A wrapped N/A win32gui SetFocus N/A wrapped N/A win32gui GetDlgItem hwnd N/A win32con IDCANCEL N/A progress_iterator N/A N/A self progress_callback N/A self results N/A N/A self progress_callback None N/A N/A self progress_thread N/A N/A threading Thread target progress_thread args N/A progress_iterator N/A self progress_cancelled N/A N/A N/A N/A self progress_thread setDaemon True N/A N/A N/A N/A self progress_thread start N/A N/A N/A wrapped N/A win32gui EndDialog hwnd N/A win32con IDOK N/A OnCancel N/A N/A self hwnd N/A N/A N/A If the user presses cancel check to see whether we're running within
        a progress thread. If so, set the cancel event and wait for the thread
        to catch up. Either way, close the dialog with a cancelled state.
         N/A N/A self results N/A N/A N/A self progress_thread N/A N/A N/A N/A N/A win32event SetEvent N/A self progress_cancelled N/A N/A N/A self _set_item N/A self _progress_id Cancelling... N/A N/A N/A N/A self progress_thread join N/A N/A wrapped N/A win32gui EndDialog hwnd N/A win32con IDCANCEL N/A OnCallback N/A N/A self hwnd field_id N/A N/A N/A If the user pressed a callback button associated with a text
        field, find the field and call its callback with the dialog window
        and the field's current value. If anything is returned, put that
        value back into the field.
         N/A N/A field default callback N/A N/A self fields N/A N/A field_id N/A self IDC_FIELD_BASE N/A result N/A callback hwnd N/A N/A self _get_item field_id N/A result N/A N/A N/A N/A self _set_item field_id result N/A OnCommand N/A N/A self hwnd msg wparam lparam N/A N/A N/A Handle button presses: OK, Cancel and the callback buttons
        which are optional for text fields
         N/A id N/A N/A win32api LOWORD wparam N/A N/A id N/A win32con IDOK N/A N/A N/A N/A self OnOk hwnd N/A N/A N/A id N/A win32con IDCANCEL N/A N/A N/A N/A self OnCancel hwnd N/A N/A N/A N/A self IDC_CALLBACK_BASE id N/A N/A self IDC_CALLBACK_BASE N/A len N/A self fields N/A N/A N/A N/A self OnCallback hwnd N/A N/A N/A self IDC_FIELD_BASE id N/A self IDC_CALLBACK_BASE N/A N/A _fields_to_fields N/A N/A fields N/A N/A N/A Helper function to transform a list of possibly 2-tuple field
    tuples into 3-tuples
     N/A _fields N/A N/A field fields N/A N/A N/A N/A len field 3 N/A N/A N/A N/A _fields append N/A N/A tuple field N/A None N/A N/A N/A N/A _fields append N/A tuple field N/A _fields N/A dialog N/A N/A title N/A fields N/A N/A Shortcut function to populate and run a dialog, returning
    the button pressed and values saved. After the title, the
    function expects a series of 2-tuples where the first item
    is the field label and the second is the default value. This
    default value determines the type of ui element as follows:

    * list - a drop down list in the order given
    * bool - a checkbox
    * string - an edit control

    A third item may be present in the tuple where the second item
    is a string. This is a callback function. If this is present and
    is not None, a small button will be added to the right of the
    corresponding edit control which, when pressed, will call the
    callback which must return a string to be inserted in the edit
    control, or None if no change is to be made. This is intended
    to throw up, eg, a file-browse dialog. A useful default is
    available as :func:`get_filename`.

    :param title: any string to use as the title of the dialog
    :param fields: series of 2-tuples consisting of a name and a default value.
    :returns: the values entered by the user in the order of `fields`
     N/A d N/A Dialog title N/A _fields_to_fields fields N/A N/A N/A d run N/A N/A d results N/A progress_dialog N/A N/A title progress_callback N/A fields N/A N/A Populate and run a dialog with a progress
    callback which yields messages. Fields are the same as for
    :func:`dialog` but the second parameter is a function which
    takes the value list as parameters and yields strings as updates.
    The strings will be displayed in a static control on the dialog
    while the [Ok] button is disabled until the callback completes,
    at which point the [Ok] button is enabled again and the tuple
    of values is returned to the caller.

    ..    note::

            The progress callback runs inside a thread so any necessary
            thread-specific preparation must happen, eg invoking
            pythoncom.CoInitialize.

    This example takes a directory from the user and finds the total
    size of each of its subdirectories, showing the name of each one
    as it is searched. Finally, it uses :func:`utils.size_as_mb` to
    display a human-redable version of each directory size::

        from winsys import dialogs, fs, utils

        sizes = {}
        def sizer(root):
            for d in fs.dir(root).dirs():
                yield d.name
                sizes[d] = sum(f.size for f in d.flat())

        dialogs.progress_dialog(
            "Sizer",
            sizer,
            ("Root", "c:/temp", dialogs.get_folder)
        )

        for d, size in sorted(sizes.items()):
            print d.name, "=>", utils.size_as_mb(size)

    :param title: any string to use as the title of the dialog
    :param progress_callback: a function accepting values as per `fields` and yielding progress as strings
    :param fields: series of 2-tuples consisting of a name and a default value
    :returns: the values entered by the user in the order of `fields`
     N/A d N/A Dialog title N/A _fields_to_fields fields progress_callback progress_callback N/A N/A N/A d run N/A N/A d results N/A info_dialog N/A N/A title text hwnd N/A N/A core UNSET N/A N/A A dialog with no fields which simply displays information
    in a read-only multiline edit box. The text can be arbitrarily big
    but the dialog will only adjust vertically up to a certain point.
    After that the user may scroll with the keyboard. The text can be
    selected and copied::

        import os, sys
        from winsys import dialogs
        filepath = os.path.join(sys.prefix, "LICENSE.txt")
        dialogs.info_dialog("LICENSE.txt", open(filepath).read())

    :param title: any string to use as the title of the dialog
    :param info: any (possibly multiline) string to display in the body of the dialog
    :param parent_hwnd: optional window handle
     N/A N/A N/A N/A InfoDialog title text hwnd run N/A get_folder N/A N/A hwnd start_folder N/A None None N/A N/A Quick interface to the shell's browse-for-folder dialog,
    optionally starting in a particular folder.

    ..    warning::
            At present this interacts badly with TortoiseHg, causing the
            interpreter to stack dump.
     _set_start_folder N/A N/A hwnd msg lp data N/A N/A N/A N/A N/A msg N/A BFFM INITIALIZED data N/A N/A N/A SendMessage hwnd N/A BFFM SETSELECTION 1 N/A N/A utils string_as_pointer data N/A N/A N/A N/A pythoncom CoInitialize N/A N/A N/A N/A pidl display_name image_list N/A wrapped N/A shell SHBrowseForFolder N/A hwnd DESKTOP None Select a file or folder N/A N/A BIF USENEWUI N/A BIF SHAREABLE _set_start_folder start_folder N/A N/A N/A N/A pythoncom CoUninitialize N/A N/A N/A pidl display_name image_list N/A None None None N/A N/A None N/A N/A N/A wrapped N/A shell SHGetPathFromIDList pidl N/A get_filename N/A N/A hwnd start_folder N/A None None N/A N/A Quick interface to the shell's browse-for-folder dialog,
    optionally starting in a particular folder and allowing file
    and share selection.

    ..    warning::
            At present this interacts badly with TortoiseHg, causing the
            interpreter to stack dump.
     _set_start_folder N/A N/A hwnd msg lp data N/A N/A N/A N/A N/A msg N/A BFFM INITIALIZED data N/A N/A N/A SendMessage hwnd N/A BFFM SETSELECTION 1 N/A N/A utils string_as_pointer data N/A N/A N/A N/A pythoncom CoInitialize N/A N/A N/A N/A pidl display_name image_list N/A wrapped N/A shell SHBrowseForFolder hwnd None Select a file or folder N/A N/A N/A BIF BROWSEINCLUDEFILES N/A BIF USENEWUI N/A BIF SHAREABLE N/A start_folder _set_start_folder None start_folder N/A N/A N/A N/A pythoncom CoUninitialize N/A N/A N/A pidl display_name image_list N/A None None None N/A N/A None N/A N/A N/A wrapped N/A shell SHGetPathFromIDList pidl N/A InfoDialog N/A Dialog N/A __init__ N/A N/A self title info parent_hwnd N/A N/A core UNSET N/A N/A N/A parent_hwnd N/A core UNSET N/A N/A parent_hwnd DESKTOP N/A N/A self info N/A N/A N/A N/A N/A str info replace replace N/A N/A N/A Dialog __init__ self title N/A N/A None N/A self info None parent_hwnd parent_hwnd N/A N/A self BUTTONS N/A N/A Ok N/A win32con IDOK N/A OnOk N/A N/A self hwnd N/A N/A N/A N/A wrapped N/A win32gui EndDialog hwnd N/A win32con IDOK N/A corners N/A N/A self l t r b N/A N/A N/A Called when the dialog is first initialised: estimate how wide
        the dialog should be according to the longest line of text
         N/A hDC N/A wrapped N/A win32gui GetDC N/A self hwnd N/A N/A N/A N/A w h N/A max N/A N/A wrapped N/A win32gui GetTextExtentPoint32 hDC line N/A line N/A N/A N/A self info split N/A N/A l t N/A N/A l w N/A 2 N/A self GUTTER_W b N/A N/A N/A wrapped N/A win32gui ReleaseDC N/A self hwnd hDC N/A N/A get_password N/A N/A name domain N/A N/A N/A flags 0 N/A flags N/A CREDUI_FLAGS GENERIC_CREDENTIALS N/A flags N/A CREDUI_FLAGS DO_NOT_PERSIST N/A N/A _ password _ N/A wrapped N/A win32cred CredUIPromptForCredentials domain 0 name None True flags N/A N/A password N/A