@@ -36,7 +36,7 @@ def show_tooltip(self, text: str, second=1.0, x='', y='', id='', blocking=True):
36
36
return self .run_script (script , blocking = blocking ) or None
37
37
38
38
def _show_traytip (
39
- self , title : str , text : str , second = 1.0 , type_id = 1 , slient = False , large_icon = False , blocking = True
39
+ self , title : str , text : str , second = 1.0 , type_id = 1 , silent = False , large_icon = False , blocking = True
40
40
):
41
41
"""Show TrayTip (Windows 10 toast notification)
42
42
@@ -50,21 +50,21 @@ def _show_traytip(
50
50
:type second: float, optional
51
51
:param type_id: Notification type `TRAYTIP_<type>`, defaults to 1
52
52
:type type_id: int, optional
53
- :param slient : Shows toast without sound, defaults to False
54
- :type slient : bool, optional
53
+ :param silent : Shows toast without sound, defaults to False
54
+ :type silent : bool, optional
55
55
:param large_icon: Shows toast with large icon, defaults to False
56
56
:type large_icon: bool, optional
57
57
"""
58
58
59
59
encoded_title = '% ' + '' .join ([f'Chr({ hex (ord (char ))} )' for char in title ])
60
60
encoded_text = '% ' + '' .join ([f'Chr({ hex (ord (char ))} )' for char in text ])
61
- option = type_id + (16 if slient else 0 ) + (32 if large_icon else 0 )
61
+ option = type_id + (16 if silent else 0 ) + (32 if large_icon else 0 )
62
62
script = self .render_template (
63
63
'gui/traytip.ahk' , title = encoded_title , text = encoded_text , second = second , option = option
64
64
)
65
65
return self .run_script (script , blocking = blocking ) or None
66
66
67
- def show_info_traytip (self , title : str , text : str , second = 1.0 , slient = False , large_icon = False , blocking = True ):
67
+ def show_info_traytip (self , title : str , text : str , second = 1.0 , silent = False , large_icon = False , blocking = True ):
68
68
"""Show TrayTip with info icon (Windows 10 toast notification)
69
69
70
70
https://www.autohotkey.com/docs/commands/TrayTip.htm
@@ -75,16 +75,16 @@ def show_info_traytip(self, title: str, text: str, second=1.0, slient=False, lar
75
75
:type text: str
76
76
:param second: Wait time (s) to be disappeared, defaults to 1.0
77
77
:type second: float, optional
78
- :param slient : Shows toast without sound, defaults to False
79
- :type slient : bool, optional
78
+ :param silent : Shows toast without sound, defaults to False
79
+ :type silent : bool, optional
80
80
:param large_icon: Shows toast with large icon, defaults to False
81
81
:type large_icon: bool, optional
82
82
:param blocked: Block program, defaults to True
83
83
:type blocked: bool, optional
84
84
"""
85
- return self ._show_traytip (title , text , second , self .TRAYTIP_INFO , slient , large_icon , blocking )
85
+ return self ._show_traytip (title , text , second , self .TRAYTIP_INFO , silent , large_icon , blocking )
86
86
87
- def show_warning_traytip (self , title : str , text : str , second = 1.0 , slient = False , large_icon = False , blocking = True ):
87
+ def show_warning_traytip (self , title : str , text : str , second = 1.0 , silent = False , large_icon = False , blocking = True ):
88
88
"""Show TrayTip with warning icon (Windows 10 toast notification)
89
89
90
90
https://www.autohotkey.com/docs/commands/TrayTip.htm
@@ -95,16 +95,16 @@ def show_warning_traytip(self, title: str, text: str, second=1.0, slient=False,
95
95
:type text: str
96
96
:param second: Wait time (s) to be disappeared, defaults to 1.0
97
97
:type second: float, optional
98
- :param slient : Shows toast without sound, defaults to False
99
- :type slient : bool, optional
98
+ :param silent : Shows toast without sound, defaults to False
99
+ :type silent : bool, optional
100
100
:param large_icon: Shows toast with large icon, defaults to False
101
101
:type large_icon: bool, optional
102
102
:param blocked: Block program, defaults to True
103
103
:type blocked: bool, optional
104
104
"""
105
- return self ._show_traytip (title , text , second , self .TRAYTIP_WARNING , slient , large_icon , blocking )
105
+ return self ._show_traytip (title , text , second , self .TRAYTIP_WARNING , silent , large_icon , blocking )
106
106
107
- def show_error_traytip (self , title : str , text : str , second = 1.0 , slient = False , large_icon = False , blocking = True ):
107
+ def show_error_traytip (self , title : str , text : str , second = 1.0 , silent = False , large_icon = False , blocking = True ):
108
108
"""Show TrayTip with error icon (Windows 10 toast notification)
109
109
110
110
https://www.autohotkey.com/docs/commands/TrayTip.htm
@@ -115,14 +115,14 @@ def show_error_traytip(self, title: str, text: str, second=1.0, slient=False, la
115
115
:type text: str
116
116
:param second: Wait time (s) to be disappeared, defaults to 1.0
117
117
:type second: float, optional
118
- :param slient : Shows toast without sound, defaults to False
119
- :type slient : bool, optional
118
+ :param silent : Shows toast without sound, defaults to False
119
+ :type silent : bool, optional
120
120
:param large_icon: Shows toast with large icon, defaults to False
121
121
:type large_icon: bool, optional
122
122
:param blocked: Block program, defaults to True
123
123
:type blocked: bool, optional
124
124
"""
125
- return self ._show_traytip (title , text , second , self .TRAYTIP_ERROR , slient , large_icon , blocking )
125
+ return self ._show_traytip (title , text , second , self .TRAYTIP_ERROR , silent , large_icon , blocking )
126
126
127
127
128
128
class AsyncGUIMixin (AsyncScriptEngine , GUIMixin ):
0 commit comments