Skip to content

Commit

Permalink
Double backticks in comments referencing code (part 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
tfpf committed Aug 14, 2024
1 parent a96f577 commit 2df0a9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ScrollableContainers/_tk.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ def __init__(self, *args, **kwargs):
def _xview(self, *args, width=None):
"""
Called when a horizontal scroll is requested. Called by other callbacks
(`_on_canvas_configure` and `_on_frame_configure`) whenever it is
(``_on_canvas_configure`` and ``_on_frame_configure``) whenever it is
necessary to horizontally realign the contents of the canvas. Scroll
the view only if the contents are not completely visible. Otherwise,
move the scrollbar to such a position that they are horizontally
centred.
:param args: Tuple which can be passed to `tkinter.Canvas.xview`.
:param args: Tuple which can be passed to ``tkinter.Canvas.xview``.
:param width: Width of the canvas.
"""
if self._canvas.xview() != (0.0, 1.0):
Expand All @@ -74,7 +74,7 @@ def _yview(self, *args):
Called when a vertical scroll is requested. Scroll the view only if the
contents are not completely visible.
:param args: Tuple which can be passed to `tkinter.Canvas.yview`.
:param args: Tuple which can be passed to ``tkinter.Canvas.yview``.
"""
if self._canvas.yview() != (0.0, 1.0):
self._canvas.yview(*args)
Expand Down Expand Up @@ -103,7 +103,7 @@ def _on_frame_configure(self, _=None):

def _on_frame_expose(self, _=None):
"""
Called when the frame becomes visible. Call `_on_frame_configure` and
Called when the frame becomes visible. Call ``_on_frame_configure`` and
then disable this callback.
This method is necessary because if a scrollable frame is put into,
Expand Down

0 comments on commit 2df0a9c

Please sign in to comment.