Module Expr Str Import alias Import alias Import alias Import alias TryExcept body ImportFrom alias ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd Call NameLoad NameLoad Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Dict Assign NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr Num Assign NameStore BinOpDiv BinOpSub Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr
N/A N/A 
auto save window geometry

Tested environment:
    Mac OS X 10.6.8

http://doc.qt.nokia.com/latest/qdesktopwidget.html
http://www.pyside.org/docs/pyside/PySide/QtGui/QWidget.html
 N/A json N/A os N/A sys N/A web N/A N/A PySide QtCore PySide QtGui N/A N/A N/A ImportError N/A PyQt4 QtCore PyQt4 QtGui N/A app_name foo N/A PWD N/A N/A N/A os path dirname N/A N/A N/A os path realpath __file__ N/A tmp_path PWD N/A app_data_path N/A N/A N/A os path join tmp_path app_name AutoSaveGeo N/A N/A QtGui QWidget N/A __init__ N/A N/A self w h parent user_data_path N/A 300 500 None None N/A N/A N/A N/A N/A super AutoSaveGeo self __init__ parent N/A N/A N/A self resize w h N/A N/A self user_data_path user_data_path N/A N/A self user_data_path N/A N/A N/A N/A self _load_win_geo N/A closeEvent N/A N/A self evt N/A N/A N/A N/A N/A hasattr self user_data_path N/A self user_data_path N/A N/A N/A N/A self _save_win_geo N/A N/A N/A N/A super AutoSaveGeo self closeEvent evt N/A _save_win_geo N/A N/A self N/A N/A N/A config_path N/A N/A N/A os path join N/A self user_data_path win_geometry.json N/A N/A N/A N/A N/A os path exists N/A self user_data_path N/A N/A N/A N/A os makedirs N/A self user_data_path N/A N/A N/A N/A os path exists config_path N/A N/A f N/A file config_path N/A buf N/A N/A f read N/A N/A N/A f close N/A N/A buf None N/A datas None N/A buf N/A N/A datas N/A N/A json loads buf N/A N/A datas N/A N/A datas N/A N/A win_geo_data N/A dict x N/A N/A self x y N/A N/A self y w N/A N/A self width h N/A N/A self height N/A N/A datas N/A N/A N/A self __class__ __name__ win_geo_data N/A buf N/A N/A json dumps datas N/A N/A N/A N/A web utils safewrite config_path buf N/A _load_win_geo N/A N/A self N/A N/A N/A config_path N/A N/A N/A os path join N/A self user_data_path win_geometry.json N/A N/A N/A N/A N/A os path exists N/A self user_data_path N/A N/A N/A N/A os makedirs N/A self user_data_path N/A desktop N/A N/A N/A QtGui QApplication desktop N/A x N/A N/A N/A desktop width 2 N/A y N/A N/A N/A N/A desktop height N/A N/A self height 2 N/A w N/A N/A self width N/A h N/A N/A self height N/A N/A N/A N/A os path exists config_path N/A N/A f N/A file config_path N/A buf N/A N/A f read N/A N/A N/A f close N/A N/A buf None N/A datas None N/A buf N/A N/A datas N/A N/A json loads buf N/A datas N/A N/A cls_name N/A N/A self __class__ __name__ N/A geo N/A N/A datas get cls_name N/A geo N/A N/A N/A x y w h N/A N/A geo N/A x N/A geo N/A y N/A geo N/A w N/A geo N/A h N/A N/A N/A self setGeometry x y w h N/A N/A Demo N/A AutoSaveGeo N/A __init__ N/A N/A self parent user_data_path N/A None None N/A N/A N/A N/A N/A super Demo self __init__ parent parent user_data_path user_data_path N/A show_and_raise N/A N/A self N/A N/A N/A N/A N/A self show N/A N/A N/A self raise_ N/A N/A N/A N/A __name__ __main__ N/A N/A app N/A N/A QtGui QApplication N/A sys argv N/A demo N/A Demo user_data_path app_data_path N/A N/A N/A demo show_and_raise N/A N/A N/A sys exit N/A N/A app exec_