|
1 | 1 | #!/usr/bin/python3 |
2 | 2 |
|
3 | | -version = __version__ = "4.20.0.8 Unreleased\n Ability to add your own theme easier using theme_add_new, VSeparator added (spelling error), removed Radio update clearing all if one is cleared (forgot about reset_group), new Element.set_vscroll_position method, added initial_folder to popup_get_folder and default_path to no_window version of popup_get_file, HorizontalSeparator (FINALLY), added keys to separators, added color parameter to Separators (defaults to theme text color), docstring for Window.get_screen_size" |
| 3 | +version = __version__ = "4.20.0.9 Unreleased\n Ability to add your own theme easier using theme_add_new, VSeparator added (spelling error), removed Radio update clearing all if one is cleared (forgot about reset_group), new Element.set_vscroll_position method, added initial_folder to popup_get_folder and default_path to no_window version of popup_get_file, HorizontalSeparator (FINALLY), added keys to separators, added color parameter to Separators (defaults to theme text color), docstring for Window.get_screen_size, added default key for one_line_progress_meter" |
4 | 4 |
|
5 | 5 | port = 'PySimpleGUI' |
6 | 6 |
|
@@ -11677,15 +11677,15 @@ def ComputeProgressStats(self): |
11677 | 11677 | return self.stat_messages |
11678 | 11678 |
|
11679 | 11679 |
|
11680 | | -def OneLineProgressMeter(title, current_value, max_value, key, *args, orientation='v', bar_color=(None, None), button_color=None, size=DEFAULT_PROGRESS_BAR_SIZE, border_width=None, grab_anywhere=False, no_titlebar=False): |
| 11680 | +def OneLineProgressMeter(title, current_value, max_value, key='OK for 1 meter', *args, orientation='v', bar_color=(None, None), button_color=None, size=DEFAULT_PROGRESS_BAR_SIZE, border_width=None, grab_anywhere=False, no_titlebar=False): |
11681 | 11681 | """ |
11682 | 11682 | :param title: text to display in eleemnt |
11683 | 11683 | :type title: (str) |
11684 | 11684 | :param current_value: current value |
11685 | 11685 | :type current_value: (int) |
11686 | 11686 | :param max_value: max value of QuickMeter |
11687 | 11687 | :type max_value: (int) |
11688 | | - :param key: Used with window.FindElement and with return values to uniquely identify this element |
| 11688 | + :param key: Used to differentiate between mutliple meters. Used to cancel meter early. Now optional as there is a default value for single meters |
11689 | 11689 | :type key: Union[str, int, tuple] |
11690 | 11690 | :param *args: stuff to output |
11691 | 11691 | :type *args: (Any) |
@@ -11717,7 +11717,7 @@ def OneLineProgressMeter(title, current_value, max_value, key, *args, orientatio |
11717 | 11717 | return rc == METER_OK |
11718 | 11718 |
|
11719 | 11719 |
|
11720 | | -def OneLineProgressMeterCancel(key): |
| 11720 | +def OneLineProgressMeterCancel(key='OK for 1 meter'): |
11721 | 11721 | """ |
11722 | 11722 | Cancels and closes a previously created One Line Progress Meter window |
11723 | 11723 |
|
|
0 commit comments