File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
sdk/python/packages/flet/src/flet/controls Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -303,15 +303,15 @@ def show_dialog(self, dialog: DialogControl) -> None:
303303 """
304304 Displays a dialog and manages its dismissal lifecycle.
305305
306- This method adds the specified `DialogControl ` to the active dialog stack
306+ This method adds the specified `dialog ` to the active dialog stack
307307 and renders it on the page. If the dialog is already open, an exception
308308 is raised.
309309 The `on_dismiss` handler of the dialog is temporarily wrapped to ensure the
310310 dialog is removed from the stack and its dismissal event is triggered
311311 appropriately.
312312
313313 Args:
314- dialog (DialogControl) :
314+ dialog:
315315 The dialog instance to display. Must not already be open.
316316
317317 Raises:
@@ -350,8 +350,7 @@ def pop_dialog(self) -> Optional[DialogControl]:
350350 and returns the closed dialog.
351351
352352 Returns:
353- Optional[DialogControl]:
354- The closed dialog instance if one was found, otherwise `None`.
353+ The closed dialog instance if one was found, otherwise `None`.
355354 """
356355 dialog = next (
357356 (dlg for dlg in reversed (self ._dialogs .controls ) if dlg .open ), None
You can’t perform that action at this time.
0 commit comments