@@ -109,7 +109,7 @@ def _peek_scrollbars(self, _event: tk.Event | None = None):
109
109
self ._show_scrollbars ()
110
110
self ._schedule_hide_scrollbars ()
111
111
112
- def _xview (self , action : str , fraction_or_amount : float | int , what : str | None = None , * , width : int | None = None ):
112
+ def _xview (self , action : str , fraction_or_amount : float , what : str | None = None , * , width : int | None = None ):
113
113
"""
114
114
Called when a horizontal scroll is requested. Called by other callbacks
115
115
(``_configure_viewport_explicit`` and ``_configure_viewport_implicit``)
@@ -135,7 +135,7 @@ def _xview(self, action: str, fraction_or_amount: float | int, what: str | None
135
135
self ._canvas .xview_moveto ((1 - width / self ._frame .winfo_width ()) / 2 )
136
136
self ._peek_scrollbars ()
137
137
138
- def _yview (self , action :str ,fraction_or_amount :float | int , what :str | None = None ):
138
+ def _yview (self , action : str , fraction_or_amount : float , what : str | None = None ):
139
139
"""
140
140
Called when a vertical scroll is requested. Scroll the viewport only if
141
141
it does not show everything in the vertical dimension.
@@ -145,7 +145,7 @@ def _yview(self, action:str,fraction_or_amount:float|int,what:str|None=None):
145
145
:param what: Third argument of ``tkinter.Canvas.yview``.
146
146
"""
147
147
if self ._canvas .yview () != (0.0 , 1.0 ):
148
- self ._canvas .yview (action ,fraction_or_amount ,what )
148
+ self ._canvas .yview (action , fraction_or_amount , what )
149
149
self ._peek_scrollbars ()
150
150
151
151
def _configure_viewport_explicit (self , event : tk .Event ):
0 commit comments