MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / update_bar

Method update_bar

PySimpleGUI/PySimpleGUI.py:5656–5676  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 7

custom_meter_exampleFunction · 0.80
the_guiFunction · 0.80
mainFunction · 0.80
update_windowFunction · 0.80
CustomMeterFunction · 0.80
print_progress_barFunction · 0.80

Calls 3

UpdateMethod · 0.80
_DecrementOpenCountMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected