--- title: "system.gui.openDesktop" description: "Creates an additional Desktop in a new frame." --- # system.gui.openDesktop > Creates an additional Desktop in a new frame. This function is used in **Python Scripting**. ## Description Creates an additional Desktop in a new frame. For more details, see the [Multi-Monitor Clients](ignition-modules\vision\common-tasks-in-vision\multi-monitor-clients\multi-monitor-clients.md) page. :::note This function accepts [keyword arguments](platform\scripting\python-scripting\user-defined-functions.md#keyword-arguments). ::: ## Client Permission Restrictions This scripting function has no [Client Permission](../../../ignition-modules/vision/vision-project-properties/vision-project-properties.md#vision-permissions-properties) restrictions. ## Syntax `system.gui.openDesktop ([screen], [handle], [title], [width], [height], [x], [y], [windows])` ### Parameters Type | Parameter | Description ------- | ------- | ------ Integer| `screen` | The screen index of which screen to place the new frame on. If omitted, screen 0 will be used. [optional] String| `handle` | A name for the desktop. If omitted, the screen index will be used. [optional] String| `title` | The title for the new frame. If omitted, the index handle will be used. If the handle and title are omitted, the screen index will be used. [optional] Integer| `width` | The width for the new desktop's frame. If omitted, frame will become maximized on the specified monitor. [optional] Integer| `height` | The height for the new desktop's frame. If omitted, frame will become maximized on the specified monitor. [optional] Integer| `x` | The x coordinate for the new desktop's frame. Only used if both width and height are specified. If omitted, defaults to 0. [optional] Integer| `y` | The y coordinate for the new desktop's frame. Only used if both width and height are specified. If omitted, defaults to 0. [optional] PySequence| `windows` | A list of window paths to open in the new Desktop frame. If omitted, the desktop will open without any opened windows. [optional] ### Returns **JFrame** - A reference to the new [Desktop frame](https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JFrame.html) object. ### Scope Vision Client ## Code Examples ```python title="Example #1" # Create a list of window paths to open in the new desktop. windowsToOpen = ["Main Windows/Main Window", "Navigation"] # Creates a new desktop. The desktop will open the windows listed above. system.gui.openDesktop(windows=windowsToOpen) ``` ```python title="Example #2" # Creates a new desktop on monitor 0 (primary) with only the Overview window open. system.gui.openDesktop(screen=0, windows=["Overview"]) ``` ```python title="Example #3" # Creates a new desktop on monitor 0 (primary) with only the Overview window open. # Including a handle gives the new desktop a name. This is useful for using other desktop scripting functions system.gui.openDesktop(screen=0, handle="Left Monitor", windows=["Overview"]) ```