Beispiel #1
0
 def resizeLineNo(self):
     cr = self.editor.contentsRect()
     rect = QtCore.QRect(cr.left(), cr.top(), self.lineNumberAreaWidth(),
                         cr.height())
     self.setGeometry(rect)
Beispiel #2
0
start = partial(QtCore.QTimer.singleShot, 1200, anim2.start)
anim.finished.connect(start)

#anim2.finished.connect(popup_bar.deleteLater)

#&&

anim = QtCore.QPropertyAnimation(popup_bar, 'size')
anim.setStartValue(QtCore.QSize(958, 0))
anim.setEndValue(QtCore.QSize(958, 46))
anim.setDuration(300)
anim.start()

#&&
item.geometry()
item.setGeometry(QtCore.QRect(0,0,958,0))
layout.setSpacing(0)
#layout.setSizeConstraint(layout.SetFixedSize)
layout.setSizeConstraint(layout.SetNoConstraint)
layout.setSizeConstraint(layout.SetDefaultConstraint)
#&&
anim = QtCore.QPropertyAnimation(popup_bar, 'height')
anim.setStartValue(0)
anim.setEndValue(246)
anim.setDuration(500)
anim.start()


#&&
anim = QtCore.QPropertyAnimation(popup_bar, 'geometry')
x,y,w,h = editor.rect().getRect()