@@ -3942,11 +3942,7 @@ def __init__(self, title: str, config: dict = None):
3942
3942
"green" : {"value_start" : 0 , "value_range" : 255 , "period" : 3 , "offset" : 120 },
3943
3943
"blue" : {"value_start" : 0 , "value_range" : 255 , "period" : 4 , "offset" : 240 },
3944
3944
# phrases to display and the number of seconds to elapse between phrases
3945
- # TODO: move to languagepack
3946
- "phrases" : [
3947
- "Please wait..." ,
3948
- "Still working..." ,
3949
- ],
3945
+ "phrases" : lang .animate_phrases ,
3950
3946
"phrase_delay" : 5 ,
3951
3947
}
3952
3948
if config is None :
@@ -4999,11 +4995,11 @@ def update_headings(
4999
4995
# Load in our marker characters. We will use them to both display the
5000
4996
# sort direction and to detect current direction
5001
4997
try :
5002
- asc = themepack .sort_asc_marker
4998
+ asc = themepack .marker_sort_asc
5003
4999
except AttributeError :
5004
5000
asc = "\u25BC "
5005
5001
try :
5006
- desc = themepack .sort_desc_marker
5002
+ desc = themepack .marker_sort_desc
5007
5003
except AttributeError :
5008
5004
desc = "\u25B2 "
5009
5005
@@ -5131,8 +5127,8 @@ class ThemePack:
5131
5127
"marker_required_color" : "red2" ,
5132
5128
# Sorting icons
5133
5129
# ----------------------------------------
5134
- "sort_asc_marker " : "\u25BC " ,
5135
- "sort_desc_marker " : "\u25B2 " ,
5130
+ "marker_sort_asc " : "\u25BC " ,
5131
+ "marker_sort_desc " : "\u25B2 " ,
5136
5132
# Info Popup defaults
5137
5133
# ----------------------------------------
5138
5134
"popup_info_auto_close_seconds" : 1 ,
@@ -5191,8 +5187,8 @@ def __call__(self, tp_dict: Dict[str, str] = {}) -> None:
5191
5187
'marker_virtual' : string eg '', f'', unicode
5192
5188
'marker_required' : string eg '', f'', unicode
5193
5189
'marker_required_color': string eg 'red', Tuple eg (255,0,0)
5194
- 'sort_asc_marker ': string eg '', f'', unicode
5195
- 'sort_desc_marker ': string eg '', f'', unicode
5190
+ 'marker_sort_asc ': string eg '', f'', unicode
5191
+ 'marker_sort_desc ': string eg '', f'', unicode
5196
5192
}
5197
5193
For Base64, you can convert a whole folder using https://github.com/PySimpleGUI/PySimpleGUI-Base64-Encoder # fmt: skip
5198
5194
Remember to us b'' around the string.
@@ -5260,7 +5256,14 @@ class LanguagePack:
5260
5256
# ------------------------------------------------------------------------------
5261
5257
"sqldriver_init" : "{name} connection" ,
5262
5258
"sqldriver_connecting" : "Connecting to database" ,
5263
- "sqldriver_execute" : "executing SQL commands" ,
5259
+ "sqldriver_execute" : "Executing SQL commands" ,
5260
+ # ------------------------------------------------------------------------------
5261
+ # Default ProgressAnimate Phrases
5262
+ # ------------------------------------------------------------------------------
5263
+ "animate_phrases" : [
5264
+ "Please wait..." ,
5265
+ "Still working..." ,
5266
+ ],
5264
5267
# ------------------------------------------------------------------------------
5265
5268
# Info Popups - no buttons
5266
5269
# ------------------------------------------------------------------------------
@@ -6965,7 +6968,7 @@ def __init__(
6965
6968
self .database = database
6966
6969
self .con = self .connect ()
6967
6970
6968
- self .win_pb .update ("Executing SQL commands" , 50 )
6971
+ self .win_pb .update (lang . sqldriver_execute , 50 )
6969
6972
if sql_commands is not None :
6970
6973
# run SQL script if the database does not yet exist
6971
6974
logger .info ("Executing sql commands passed in" )
0 commit comments