title: Attempting Simple QPushButton Background color changing
body: <p>I need help creating a simple 'blinking' effect by changing the background color of a Q push button. I thought if I can change the background color between 2 colors fast enough, I can generate this blinking effect. However, while I can set the background color to one color, I cant figure out how to change between the 2 colors fast. I tried using loops, but my output GUI only stays with one color. Im a beginner to this type of stuff so perhaps im missing a simple solution.</p>
  
  <p>I have all the necessary packages and everything, so I only included the button part that deals with the background colors for simplicity, this is where I believe my issue is in.</p>
  
  <pre><code>self.powerup_button = QtWidgets.QPushButton(self.centralwidget)
  
  count = 0
  
  while count &lt; 100:
  
  
     self.powerup_button.setStyleSheet("background-color: none")
     count = count + 1
  
     self.powerup_button.setStyleSheet("background-color: green")
     count = count + 1
  </code></pre>
  
  <p>I thought the while loop would make the button switch between the 2 colors, creating the blink effect I would like but I was wrong.</p>