original_docstring: Show a widget in a window and then close it.
  
      
docstring: Show a widget in a window and then close it.
docstring_tokens: Show a widget in a window and then close it .
code: def show_and_close_widget(qtbot, widget):
      """Show a widget in a window and then close it.
  
      """
      from .fixtures import DIALOG_SLEEP
      win = show_widget(qtbot, widget)
      qtbot.wait(DIALOG_SLEEP)
      close_window_or_popup(qtbot, win)
code_tokens: def show_and_close_widget ( qtbot , widget ) : from . fixtures import DIALOG_SLEEP win = show_widget ( qtbot , widget ) qtbot . wait ( DIALOG_SLEEP ) close_window_or_popup ( qtbot , win )
short_docstring: Show a widget in a window and then close it.
short_docstring_tokens: Show a widget in a window and then close it .
comment: """Show a widget in a window and then close it.
  
      """