Module Expr Str Import alias TryExcept body ImportFrom alias ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias ImportFrom alias Assign NameStore Dict Str Str NameLoad Num ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Num Num Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Num Num Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Num Num Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Num Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BoolOpAnd CompareEq Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr CompareEq Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore CompareEq Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If BoolOpOr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assert CompareIn NameLoad TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore TupleLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Global identifier Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Print Str 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 Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr
N/A N/A 
Custom simple dialog

Tested environment:
    Mac OS X 10.6.8
 N/A sys N/A N/A PySide QtCore PySide QtGui N/A N/A N/A ImportError N/A PyQt4 QtCore PyQt4 QtGui N/A default_settings N/A confirm x_action_is_quit True 0 QuitConfirmDlg N/A N/A QtGui QDialog N/A __init__ N/A N/A self parent settings N/A N/A N/A N/A N/A N/A super QuitConfirmDlg self __init__ parent N/A N/A N/A self resize 400 250 N/A N/A self _settings settings N/A N/A N/A self setModal True N/A N/A self tips_label N/A N/A QtGui QLabel When you click the close button should me: self N/A N/A N/A N/A self tips_label setGeometry N/A N/A QtCore QRect 40 40 280 15 N/A N/A self minimize_rbtn N/A N/A QtGui QRadioButton Minimize to system tray self N/A N/A N/A N/A self minimize_rbtn setGeometry N/A N/A QtCore QRect 70 90 180 20 N/A N/A self exit_rbtn N/A N/A QtGui QRadioButton Exit program self N/A N/A N/A N/A self exit_rbtn setGeometry N/A N/A QtCore QRect 70 120 110 20 N/A N/A self no_confirm_cbox N/A N/A QtGui QCheckBox Don't ask me again self N/A N/A N/A N/A self no_confirm_cbox setGeometry N/A N/A QtCore QRect 40 180 150 20 N/A N/A N/A N/A self minimize_rbtn setChecked N/A N/A N/A self _settings N/A x_action_is_quit N/A N/A N/A N/A self exit_rbtn setChecked N/A N/A self _settings N/A x_action_is_quit N/A N/A N/A N/A self no_confirm_cbox setChecked N/A N/A N/A self _settings N/A confirm N/A keyPressEvent N/A N/A self evt N/A N/A N/A close_win_cmd_w N/A N/A N/A N/A evt key N/A N/A QtCore Qt Key_W N/A N/A N/A evt modifiers N/A N/A QtCore Qt ControlModifier N/A close_win_esc N/A N/A N/A evt key N/A N/A QtCore Qt Key_Escape N/A N/A close_win_cmd_w close_win_esc N/A N/A N/A N/A self close N/A N/A self _settings N/A get_inputs N/A N/A self N/A N/A N/A N/A N/A self _settings N/A x_action_is_quit N/A N/A N/A self exit_rbtn isChecked N/A N/A N/A self _settings N/A confirm N/A N/A N/A N/A self no_confirm_cbox isChecked N/A N/A self _settings N/A popup_and_get_inputs N/A N/A parent settings N/A N/A N/A dlg N/A QuitConfirmDlg parent settings N/A N/A N/A dlg show N/A result N/A N/A dlg exec_ N/A N/A result N/A N/A N/A QtGui QDialog Accepted N/A N/A QtGui QDialog Rejected N/A N/A N/A dlg get_inputs N/A staticmethod N/A Demo N/A N/A QtGui QWidget N/A __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super Demo self __init__ N/A N/A x y w h N/A 500 200 300 400 N/A N/A N/A self setGeometry x y w h N/A N/A self settings_btn N/A N/A QtGui QPushButton Settings self N/A N/A N/A N/A N/A self settings_btn clicked connect N/A self _settings_btn_clicked N/A _settings_btn_clicked N/A N/A self N/A N/A N/A default_settings N/A settings default_settings N/A default_settings N/A N/A QuitConfirmDlg popup_and_get_inputs self settings N/A default_settings: default_settings 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 N/A N/A N/A demo show_and_raise N/A N/A N/A sys exit N/A N/A app exec_