Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 924 Bytes

README.md

File metadata and controls

36 lines (20 loc) · 924 Bytes

用于PYQT的加载动画,基于QPainter实现


使用


self.progress = MyWaitProgressDialog('begin...',self)
        self.progress.RotateStyle = MyRotateProgress.MyRotateProgress.PenStyleNormal
        self.progress.exec()

分为三种样式


  1. PenStyleGradient

    self.progress.RotateStyle = MyRotateProgress.MyRotateProgress.PenStyleGradient

    ProgressGradient

  2. PenstylePerGradient

    self.progress.RotateStyle = MyRotateProgress.MyRotateProgress.PenstylePerGradient

    ProgressPerGradient

  3. PenstyleNormal

    self.progress.RotateStyle = MyRotateProgress.MyRotateProgress.PenstyleNormal

    ProgressNormal