<s> """<STR_LIT>""" <EOL> import sys <EOL> try : <EOL> from PySide import QtCore <EOL> from PySide import QtGui <EOL> except ImportError : <EOL> from PyQt4 import QtCore <EOL> from PyQt4 import QtGui <EOL> class Demo ( QtGui . QWidget ) : <EOL> def __init__ ( self ) : <EOL> super ( Demo , self ) . __init__ ( ) <EOL> x , y , w , h = <NUM_LIT> , <NUM_LIT:200> , <NUM_LIT> , <NUM_LIT> <EOL> self . setGeometry ( x , y , w , h ) <EOL> title = QtGui . QLabel ( '<STR_LIT>' ) <EOL> author = QtGui . QLabel ( '<STR_LIT>' ) <EOL> review = QtGui . QLabel ( '<STR_LIT>' ) <EOL> titleEdit = QtGui . QLineEdit ( ) <EOL> authorEdit = QtGui . QLineEdit ( ) <EOL> reviewEdit = QtGui . QTextEdit ( ) <EOL> grid = QtGui . QGridLayout ( ) <EOL> grid . setSpacing ( <NUM_LIT:10> ) <EOL> grid . addWidget ( title , <NUM_LIT:1> , <NUM_LIT:0> ) <EOL> grid . addWidget ( titleEdit , <NUM_LIT:1> , <NUM_LIT:1> ) <EOL> grid . addWidget ( author , <NUM_LIT:2> , <NUM_LIT:0> ) <EOL> grid . addWidget ( authorEdit , <NUM_LIT:2> , <NUM_LIT:1> ) <EOL> grid . addWidget ( review , <NUM_LIT:3> , <NUM_LIT:0> ) <EOL> grid . addWidget ( reviewEdit , <NUM_LIT:3> , <NUM_LIT:1> , <NUM_LIT:5> , <NUM_LIT:1> ) <EOL> self . setLayout ( grid ) <EOL> def show_and_raise ( self ) : <EOL> self . show ( ) <EOL> self . raise_ ( ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> app = QtGui . QApplication ( sys . argv ) <EOL> demo = Demo ( ) <EOL> demo . show_and_raise ( ) <EOL> sys . exit ( app . exec_ ( ) ) </s>
