File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,41 @@ def resize_pane(
143
143
mouse : t .Optional [bool ] = None ,
144
144
# Optional flags
145
145
trim_below : t .Optional [bool ] = None ,
146
+ ) -> "Pane" :
147
+ """Resize pane, deprecated by :meth:`Pane.resize`.
148
+
149
+ .. deprecated:: 0.28
150
+
151
+ Deprecated by :meth:`Pane.resize`.
152
+ """
153
+ warnings .warn (
154
+ "Deprecated: Use Pane.resize() instead of Pane.resize_pane()" ,
155
+ stacklevel = 2 ,
156
+ )
157
+ return self .resize (
158
+ adjustment_direction = adjustment_direction ,
159
+ adjustment = adjustment ,
160
+ height = height ,
161
+ width = width ,
162
+ zoom = zoom ,
163
+ mouse = mouse ,
164
+ trim_below = trim_below ,
165
+ )
166
+
167
+ def resize (
168
+ self ,
169
+ # Adjustments
170
+ adjustment_direction : t .Optional [ResizeAdjustmentDirection ] = None ,
171
+ adjustment : t .Optional [int ] = None ,
172
+ # Manual
173
+ height : t .Optional [t .Union [str , int ]] = None ,
174
+ width : t .Optional [t .Union [str , int ]] = None ,
175
+ # Zoom
176
+ zoom : t .Optional [bool ] = None ,
177
+ # Mouse
178
+ mouse : t .Optional [bool ] = None ,
179
+ # Optional flags
180
+ trim_below : t .Optional [bool ] = None ,
146
181
) -> "Pane" :
147
182
"""Resize tmux pane.
148
183
You can’t perform that action at this time.
0 commit comments