You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Somehow the setState 'warning' state behaves differently than the 'error' state.
To Reproduce
I have the following code:
import time
import PyTaskbar
TaskBarStatus = PyTaskbar.Progress()
TaskBarStatus.init()
for i in range(20):
time.sleep(0.7)
TaskBarStatus.setProgress(100)
TaskBarStatus.setState('error')
time.sleep(0.7)
TaskBarStatus.setProgress(100)
TaskBarStatus.setState('warning')
time.sleep(0.7)
TaskBarStatus.setState('normal')
input("Press Enter to continue...")
Expected behavior
This piece of code should make my taskbar flash red and yellow while keeping the bar full.
Screenshots
Only the yellow warning state is being affected by the previous setProgress instruction.
Desktop (please complete the following information):
OS: Windows 10 (latest updates)
The text was updated successfully, but these errors were encountered:
So this one is on me, it works by setting the progress after setting the state. Still does not explain why i cannot set the progress first but works for me as a solution.
for i in range(20):
time.sleep(0.7)
TaskBarStatus.setState('error')
TaskBarStatus.setProgress(100)
time.sleep(0.7)
TaskBarStatus.setState('warning')
TaskBarStatus.setProgress(100)
time.sleep(0.7)
TaskBarStatus.setState('normal')
Describe the bug
Somehow the setState 'warning' state behaves differently than the 'error' state.
To Reproduce
I have the following code:
Expected behavior
This piece of code should make my taskbar flash red and yellow while keeping the bar full.
Screenshots

Only the yellow warning state is being affected by the previous setProgress instruction.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: