DEPRECATED BUT STILL USABLE - has been combined with the normal ProgressBar.update method. Change what the bar shows by changing the current count and optionally the max count :param current_count: sets the current value :type current_count: (int) :param ma
(self, current_count, max=None)
| 5654 | |
| 5655 | # returns False if update failed |
| 5656 | def update_bar(self, current_count, max=None): |
| 5657 | """ |
| 5658 | DEPRECATED BUT STILL USABLE - has been combined with the normal ProgressBar.update method. |
| 5659 | Change what the bar shows by changing the current count and optionally the max count |
| 5660 | |
| 5661 | :param current_count: sets the current value |
| 5662 | :type current_count: (int) |
| 5663 | :param max: changes the max value |
| 5664 | :type max: (int) |
| 5665 | """ |
| 5666 | |
| 5667 | if self.ParentForm.TKrootDestroyed: |
| 5668 | return False |
| 5669 | self.TKProgressBar.Update(current_count, max=max) |
| 5670 | try: |
| 5671 | self.ParentForm.TKroot.update() |
| 5672 | except: |
| 5673 | Window._DecrementOpenCount() |
| 5674 | # _my_windows.Decrement() |
| 5675 | return False |
| 5676 | return True |
| 5677 | |
| 5678 | def update(self, current_count=None, max=None, bar_color=None, visible=None): |
| 5679 | """ |
no test coverage detected