#NEWLINE# def initUI( self ) : #NEWLINE# #INDENT# self . setWindowTitle ( 'Notes conflict!' ) #NEWLINE# self . move ( 250 , 200 ) #NEWLINE# vbox = QtGui . QVBoxLayout ( ) #NEWLINE# self . setLayout ( vbox ) #NEWLINE# self . tedit = QtGui . QTextEdit ( self . text ) #NEWLINE# vbox . addWidget ( self . tedit ) #NEWLINE# buttons = QtGui . QHBoxLayout ( ) #NEWLINE# vbox . addLayout ( buttons ) #NEWLINE# self . otherAll = QtGui . QPushButton ( 'Keep other (for all)' , self ) #NEWLINE# self . connect ( self . otherAll , QtCore . SIGNAL ( 'clicked()' ) , self . setOtherAll ) #NEWLINE# buttons . addWidget ( self . otherAll ) #NEWLINE# self . other = QtGui . QPushButton ( 'Keep other' , self ) #NEWLINE# self . connect ( self . other , QtCore . SIGNAL ( 'clicked()' ) , self . setOther ) #NEWLINE# buttons . addWidget ( self . other ) #NEWLINE# self . resolve = QtGui . QPushButton ( 'Resolved' , self ) #NEWLINE# self . connect ( self . resolve , QtCore . SIGNAL ( 'clicked()' ) , self . setResolved ) #NEWLINE# buttons . addWidget ( self . resolve ) #NEWLINE# self . own = QtGui . QPushButton ( 'Keep yours' , self ) #NEWLINE# self . connect ( self . own , QtCore . SIGNAL ( 'clicked()' ) , self . setOwn ) #NEWLINE# buttons . addWidget ( vbox . own ) #NEWLINE# self . ownAll = QtGui . QPushButton ( 'Keep yours (for all)' , self ) #NEWLINE# self . connect ( self . ownAll , QtCore . SIGNAL ( 'clicked()' ) , self . setOwnAll ) #NEWLINE# buttons . addWidget ( self . ownAll )