1- # flake8: NOQA W605
1+ # flake8: NOQA: W605
22"""Pythonization of the :ref:`tmux(1)` pane.
33
44libtmux.pane
@@ -102,8 +102,10 @@ def window(self) -> "Window":
102102 def session (self ) -> "Session" :
103103 return self .window .session
104104
105- #
106- #
105+ """
106+ Commands (pane-scoped)
107+ """
108+
107109 def cmd (self , cmd : str , * args : t .Any , ** kwargs : t .Any ) -> tmux_cmd :
108110 """Return :meth:`Server.cmd` defaulting to ``target_pane`` as target.
109111
@@ -117,8 +119,10 @@ def cmd(self, cmd: str, *args: t.Any, **kwargs: t.Any) -> tmux_cmd:
117119
118120 return self .server .cmd (cmd , * args , ** kwargs )
119121
120- #
121- #
122+ """
123+ Commands (tmux-like)
124+ """
125+
122126 def resize_pane (self , * args : t .Any , ** kwargs : t .Any ) -> "Pane" :
123127 """
124128 ``$ tmux resize-pane`` of pane and return ``self``.
@@ -274,11 +278,13 @@ def display_message(
274278 self .cmd ("display-message" , cmd )
275279 return None
276280
277- #
278- #
279- # These are commands that climb to the parent scope's methods with
280- # additional scoped window info.
281- #
281+ """
282+ Commands ("climber"-helpers)
283+
284+ These are commands that climb to the parent scope's methods with
285+ additional scoped window info.
286+ """
287+
282288 def select_pane (self ) -> "Pane" :
283289 """
284290 Select pane. Return ``self``.
@@ -322,8 +328,10 @@ def split_window(
322328 percent = percent ,
323329 )
324330
325- #
326- #
331+ """
332+ Commands (helpers)
333+ """
334+
327335 def set_width (self , width : int ) -> "Pane" :
328336 """
329337 Set width of pane.
0 commit comments