def func7(): print(7) i = 2 Animation.circleFill(creditsInfo, creditsInfo.rect().topRight(), QColor("#66C966"), _hideAfterFinish=lambda i: (i % 2 == 0), _in=True)
def func2(): print(2) Animation.sideSlideOut(auth, ApplicationSide.TopSide) userName = authUserName.text() if userName == "": userName = "******" menuButtonLogin.setText("Logged as " + userName) menuButtonLogin.setEnabled(False)
def func3(): print(3) Animation.sideSlideOut(menu, ApplicationSide.LeftSide) Animation.sideSlideIn(notify, ApplicationSide.BottomSide, False) def func4(): connectionMessage.showMessage() QTimer.singleShot(300, lambda: subscriptionMessage.showMessage()) QTimer.singleShot(420, Qt.PreciseTimer, func4)
def func6(_currentScrollPosition): print(6) lastScrollPosition = 0 lastScrollMaximum = textEdit.verticalScrollBar().maximum() if lastScrollMaximum == textEdit.verticalScrollBar().maximum(): if lastScrollPosition < _currentScrollPosition: if mainToolbar.height() > 0: Animation.slideOut(mainToolbar, AnimationDirection.FromTopToBottom, True, False) Animation.slideOut(tabs, AnimationDirection.FromTopToBottom, True, False) pass else: if mainToolbar.height() == 0: Animation.slideIn(mainToolbar, AnimationDirection.FromTopToBottom, True, False) Animation.slideIn(tabs, AnimationDirection.FromTopToBottom, True, False) pass lastScrollPosition = _currentScrollPosition lastScrollMaximum = textEdit.verticalScrollBar().maximum()
def func1(): print(1) Animation.sideSlideIn(auth, ApplicationSide.TopSide) authUserName.setFocus()
def hideMessage(self): Animation.slideOut(self, AnimationDirection.FromBottomToTop, True, False)
def showMessage(self): Animation.slideIn(self, AnimationDirection.FromBottomToTop, True, False) QTimer.singleShot(2000, lambda: self.hideMessage())
connectionMessage = NotifyMessage(notify, _message="Connections estabilished") subscriptionMessage = NotifyMessage( notify, _message= "Subscribe to <b>pro</b> account and get more available features.<br/><br/><a href=\"http://dimkanovikov.pro\">Read more</a>" ) notifyLayout = QVBoxLayout(notify) notifyLayout.setContentsMargins(QMargins()) notifyLayout.setSpacing(1) notifyLayout.addWidget(connectionMessage) notifyLayout.addWidget(subscriptionMessage) notify.hide() mainToolbarMenuButton.clicked.connect( lambda: Animation.sideSlideIn(menu, ApplicationSide.LeftSide)) def func1(): print(1) Animation.sideSlideIn(auth, ApplicationSide.TopSide) authUserName.setFocus() menuButtonLogin.clicked.connect(func1) def func2(): print(2) Animation.sideSlideOut(auth, ApplicationSide.TopSide) userName = authUserName.text() if userName == "": userName = "******" menuButtonLogin.setText("Logged as " + userName)