Code Monkey home page Code Monkey logo

pyside2extn's People

Contributors

anjalp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pyside2extn's Issues

RoundProgressBar gives name error

Hi,
I have installed PySide2 Extensions from pip. To be exact with pip3 for python 3.8.10
When i try the set minimum value of the bar, it gives me name "maximum" is not defined error.
When i looked up the relative code, i found out that there is a basic naming error.
bug
I think the line 203:
if self.rpb_minimum==maximum:
should be
if self.rpb_maximum==minimum:

Implement round progress bar with Qtimer?

I have edit your code to meet my goal. I want to implement a progress bar with timer like... if I pressed start button... timer should initialize itself and after every 10 minutes the progress bar progresses itself by 10%. after timer resets itself after 90 minutes.
For that i have set the timer.start(10 minutes), and progress_val(90 minutes).
problem:
problem is that after 1st 10 minutes progress bar increases and for next 10 minutes the next dotted line increases by adding to first dot line. what i want is the one dot line should represent the 10 minutes and for next 10 minutes the next dot line draw, and there should be distance between them.

    # LETS ADD TIMER TO CHANGE PROGRESSES
    self.timer = QtCore.QTimer()
    self.timer.timeout.connect(self.progress)  # progress function
    self.timer.start(60000)  # every 1 minute = 60000ms

    # Change all progresses to zero on start
    QtCore.QTimer.singleShot(0, lambda: self.ui.progressBar.rpb_setValue(0))

def progress(self):
    global progress_val
    # Set progress values
    self.ui.progressBar.rpb_setValue(progress_val)

    # Reset progresses if the maximum value is reached
    if progress_val > 5400000:  # value update till 90 minutes
        progress_val = 0

    # Increase value every 60 ms
    progress_val += 1

`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.