VOOZH about

URL: https://www.geeksforgeeks.org/python/pyqt5-percentile-calculator/

⇱ PyQt5 - Percentile Calculator - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

PyQt5 - Percentile Calculator

Last Updated : 21 Jun, 2020
In this article we will see how we can create a percentile calculator using PyQt5, below is how the percentile calculator will look like 👁 Image
GUI implementation steps 1. Create a heading label that display the calculator name 2. Create label and line edit pair for total students, label to show what user has to enter and line edit to enter text 3. Similarly create a pair for getting rank 4. Create a push button to calculate the percentile 5. Create a label to show the calculated percentile Back end implementation steps 1. Make the line edit to accept only the number as input 2. Add action to the push button 3. Inside the push button action get the text of the line edits 4. Check if the line edit text is empty or zero then return so that function will not execute further 5. Convert the text value into integer 6. Calculate the percentile and set this value to the label
Below is the implementation Output :
Comment