@@ -238,22 +238,22 @@ def _create_window(self, atom):
238238 win32 .GetModuleHandle (None ),
239239 None )
240240
241- # On Vista+, we must explicitly opt-in to receive WM_TASKBARCREATED when
242- # running with escalated privileges
241+ # On Vista+, we must explicitly opt-in to receive WM_TASKBARCREATED
242+ # when running with escalated privileges
243243 win32 .ChangeWindowMessageFilterEx (
244244 hwnd , win32 .WM_TASKBARCREATED , win32 .MSGFLT_ALLOW , None )
245245 return hwnd
246246
247247 def _create_menu (self , descriptors , callbacks ):
248- """Creates a :class:`ctypes.wintypes.HMENU` from a :class:`pystray.Menu`
249- instance.
248+ """Creates a :class:`ctypes.wintypes.HMENU` from a
249+ :class:`pystray.Menu` instance.
250250
251251 :param descriptors: The menu descriptors. If this is falsy, ``None`` is
252252 returned.
253253
254254 :param callbacks: A list to which a callback is appended for every menu
255- item created. The menu item IDs correspond to the items in this list
256- plus one.
255+ item created. The menu item IDs correspond to the items in this
256+ list plus one.
257257
258258 :return: a menu
259259 """
@@ -265,7 +265,7 @@ def _create_menu(self, descriptors, callbacks):
265265 hmenu = win32 .CreatePopupMenu ()
266266 for i , descriptor in enumerate (descriptors ):
267267 # Append the callbacks before creating the menu items to ensure
268- # that the first item get the ID 1
268+ # that the first item gets the ID 1
269269 callbacks .append (self ._handler (descriptor ))
270270 menu_item = self ._create_menu_item (descriptor , callbacks )
271271 win32 .InsertMenuItem (hmenu , i , True , ctypes .byref (menu_item ))
@@ -279,8 +279,8 @@ def _create_menu_item(self, descriptor, callbacks):
279279 :param descriptor: The menu item descriptor.
280280
281281 :param callbacks: A list to which a callback is appended for every menu
282- item created. The menu item IDs correspond to the items in this list
283- plus one.
282+ item created. The menu item IDs correspond to the items in this
283+ list plus one.
284284
285285 :return: a :class:`pystray._util.win32.MENUITEMINFO`
286286 """
0 commit comments