<s> from PyQt4 import QtCore , QtGui <EOL> from advancedoptions import AdvancedOptions_widget <EOL> from TumblrTextEdit import TumblrTextEdit <EOL> class Link_widget ( QtGui . QDialog ) : <EOL> def CreateLabel ( self , text , parent ) : <EOL> etiqueta = QtGui . QLabel ( text , parent ) <EOL> sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Fixed , QtGui . QSizePolicy . Fixed ) <EOL> sizePolicy . setHorizontalStretch ( <NUM_LIT:0> ) <EOL> sizePolicy . setVerticalStretch ( <NUM_LIT:0> ) <EOL> etiqueta . setSizePolicy ( sizePolicy ) <EOL> return etiqueta <EOL> def CreateButton ( self , text , parent ) : <EOL> button = QtGui . QPushButton ( text , parent ) <EOL> sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Preferred , QtGui . QSizePolicy . Maximum ) <EOL> button . setMaximumSize ( QtCore . QSize ( <NUM_LIT> , <NUM_LIT> ) ) <EOL> button . setSizePolicy ( sizePolicy ) <EOL> return button <EOL> def CreateLineEdit ( self , parent ) : <EOL> linedit = QtGui . QLineEdit ( parent ) <EOL> sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Preferred , QtGui . QSizePolicy . Maximum ) <EOL> sizePolicy . setHorizontalStretch ( <NUM_LIT:0> ) <EOL> sizePolicy . setVerticalStretch ( <NUM_LIT:0> ) <EOL> sizePolicy . setHeightForWidth ( linedit . sizePolicy ( ) . hasHeightForWidth ( ) ) <EOL> linedit . setSizePolicy ( sizePolicy ) <EOL> linedit . setMaximumSize ( QtCore . QSize ( <NUM_LIT> , <NUM_LIT> ) ) <EOL> font = QtGui . QFont ( ) <EOL> font . setPointSize ( <NUM_LIT> ) <EOL> linedit . setFont ( font ) <EOL> return linedit <EOL> def setupUi ( self , parent ) : <EOL> self . setWindowTitle ( '<STR_LIT>' ) <EOL> self . resize ( <NUM_LIT> , <NUM_LIT> ) <EOL> icon = QtGui . QIcon ( ) <EOL> icon . addPixmap ( QtGui . QPixmap ( "<STR_LIT>" ) , QtGui . QIcon . Normal , QtGui . QIcon . Off ) <EOL> self . setWindowIcon ( icon ) <EOL> Hbox = QtGui . QHBoxLayout ( ) <EOL> self . Vbox = QtGui . QVBoxLayout ( ) <EOL> self . lb_Add = self . CreateLabel ( '<STR_LIT>' , parent ) <EOL> self . lb_title = self . CreateLabel ( '<STR_LIT>' , parent ) <EOL> self . lb_url = self . CreateLabel ( '<STR_LIT>' , parent ) <EOL> self . lb_description = self . CreateLabel ( '<STR_LIT>' , parent ) <EOL> self . le_title = self . CreateLineEdit ( parent ) <EOL> self . le_URL = self . CreateLineEdit ( parent ) <EOL> self . te_description = TumblrTextEdit ( ) <EOL> self . te_description . pariente = parent <EOL> self . BtBox = QtGui . QHBoxLayout ( ) <EOL> self . bt_post = self . CreateButton ( '<STR_LIT>' , parent ) <EOL> self . bt_post . setStyleSheet ( '<STR_LIT>' ) <EOL> self . bt_cancel = self . CreateButton ( '<STR_LIT>' , parent ) <EOL> self . bt_cancel . setStyleSheet ( '<STR_LIT>' ) <EOL> self . BtBox . addWidget ( self . bt_post ) <EOL> self . BtBox . addStretch ( ) <EOL> self . BtBox . addWidget ( self . bt_cancel ) <EOL> self . Vbox . addWidget ( self . lb_Add ) <EOL> self . Vbox . addWidget ( self . lb_title ) <EOL> self . Vbox . addWidget ( self . le_title ) <EOL> self . Vbox . addWidget ( self . lb_url ) <EOL> self . Vbox . addWidget ( self . le_URL ) <EOL> self . Vbox . addWidget ( self . lb_description ) <EOL> self . Vbox . addLayout ( self . te_description ) <EOL> self . Vbox . addLayout ( self . BtBox ) <EOL> self . advanced = AdvancedOptions_widget ( ) <EOL> Hbox . addLayout ( self . Vbox ) <EOL> Hbox . addLayout ( self . advanced ) <EOL> self . setLayout ( Hbox ) </s>
