<s> from pyqode . qt import QtCore , QtGui , QtWidgets <EOL> class Ui_Dialog ( object ) : <EOL> def setupUi ( self , Dialog ) : <EOL> Dialog . setObjectName ( "<STR_LIT>" ) <EOL> Dialog . resize ( <NUM_LIT> , <NUM_LIT> ) <EOL> self . verticalLayout = QtWidgets . QVBoxLayout ( Dialog ) <EOL> self . verticalLayout . setObjectName ( "<STR_LIT>" ) <EOL> self . label = QtWidgets . QLabel ( Dialog ) <EOL> self . label . setObjectName ( "<STR_LIT:label>" ) <EOL> self . verticalLayout . addWidget ( self . label ) <EOL> self . listWidget = QtWidgets . QListWidget ( Dialog ) <EOL> self . listWidget . setSelectionMode ( QtWidgets . QAbstractItemView . ExtendedSelection ) <EOL> self . listWidget . setObjectName ( "<STR_LIT>" ) <EOL> self . verticalLayout . addWidget ( self . listWidget ) <EOL> self . buttonBox = QtWidgets . QDialogButtonBox ( Dialog ) <EOL> self . buttonBox . setOrientation ( QtCore . Qt . Horizontal ) <EOL> self . buttonBox . setStandardButtons ( QtWidgets . QDialogButtonBox . Cancel | QtWidgets . QDialogButtonBox . Discard | QtWidgets . QDialogButtonBox . SaveAll ) <EOL> self . buttonBox . setObjectName ( "<STR_LIT>" ) <EOL> self . verticalLayout . addWidget ( self . buttonBox ) <EOL> self . retranslateUi ( Dialog ) <EOL> self . buttonBox . accepted . connect ( Dialog . accept ) <EOL> self . buttonBox . rejected . connect ( Dialog . reject ) <EOL> QtCore . QMetaObject . connectSlotsByName ( Dialog ) <EOL> def retranslateUi ( self , Dialog ) : <EOL> Dialog . setWindowTitle ( _ ( "<STR_LIT>" ) ) <EOL> self . label . setText ( _ ( "<STR_LIT>" ) ) </s>
