parameters: (window_type, name, category="", needs_menu_item=True, menu_path="", unique=True)
docstring: Register a new window type with the Sandbox.
      This should only be called once per window type, when your python plugin is initialized.
  
      :param class window_type: The class of your window. This must be a subclass of QWidget.
      :param str name: The name of your window.
      :param str category: The category of your window.
      :param bool needs_menu_item: If true, the window will be displayed in the "tools" submenu of the sandbox filemenu.
      :param str menu_path: The path (within the tools menu) to display your tool's menu item. Nested menus can be decalred with forward slahes.
      :param bool unique: If true, only one instance of your menu can be displayed at a time. Otherwise, multiple may be opened simultaneously.
      :rtype: None
docstring_summary: Register a new window type with the Sandbox.
      This should only be called once per window type, when your python plugin is initialized.
docstring_tokens: Register a new window type with the Sandbox . This should only be called once per window type when your python plugin is initialized .
function: def register_window(window_type, name, category="", needs_menu_item=True, menu_path="", unique=True):
      """
      Register a new window type with the Sandbox.
      This should only be called once per window type, when your python plugin is initialized.
  
      :param class window_type: The class of your window. This must be a subclass of QWidget.
      :param str name: The name of your window.
      :param str category: The category of your window.
      :param bool needs_menu_item: If true, the window will be displayed in the "tools" submenu of the sandbox filemenu.
      :param str menu_path: The path (within the tools menu) to display your tool's menu item. Nested menus can be decalred with forward slahes.
      :param bool unique: If true, only one instance of your menu can be displayed at a time. Otherwise, multiple may be opened simultaneously.
      :rtype: None
      """
  
      # Verify types
      if not issubclass(window_type, QtWidgets.QWidget):
          raise TypeError("window_type must be a QWidget type")
  
      if not isinstance(name, str):
          raise TypeError("name must be a string")
  
      if not isinstance(category, str):
          raise TypeError("category must be a string")
  
      if not isinstance(needs_menu_item, bool):
          raise TypeError("needs_menu_item must be a bool")
  
      if not isinstance(menu_path, str):
          raise TypeError("menu_path must be a string")
  
      if not isinstance(unique, bool):
          raise TypeError("unique must be a bool")
  
      bridge_plugin.register_window(window_type, name, category, needs_menu_item, menu_path, unique)
function_tokens: def register_window ( window_type , name , category = "" , needs_menu_item = True , menu_path = "" , unique = True ) : # Verify types if not issubclass ( window_type , QtWidgets . QWidget ) : raise TypeError ( "window_type must be a QWidget type" ) if not isinstance ( name , str ) : raise TypeError ( "name must be a string" ) if not isinstance ( category , str ) : raise TypeError ( "category must be a string" ) if not isinstance ( needs_menu_item , bool ) : raise TypeError ( "needs_menu_item must be a bool" ) if not isinstance ( menu_path , str ) : raise TypeError ( "menu_path must be a string" ) if not isinstance ( unique , bool ) : raise TypeError ( "unique must be a bool" ) bridge_plugin . register_window ( window_type , name , category , needs_menu_item , menu_path , unique )