---
id: "M:cAlgo.API.Window.#ctor"
kind: "constructor"
type: "T:cAlgo.API.Window"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Windows/Window/Constructor/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# Window constructor

Member of [Window](https://help.ctrader.com/ctrader-algo/references/Controls/Windows/Window/index.md).

## Window()

Creates an empty window with default settings

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.
- Cloud: Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.

C#:

```csharp
public Window()
```

Python:

```python
Window()
```

### Examples

C#:

```csharp
var window = new Window { Title = "Trade panel", Width = 300, Height = 200 };
window.Child = new TextBlock { Text = SymbolName + " " + Symbol.Bid };
window.Show();
```

Python:

```python
window = Window()
window.Title = "Trade panel"
window.Width = 300
window.Height = 200
textBlock = TextBlock()
textBlock.Text = f"{api.SymbolName} {api.Symbol.Bid}"
window.Child = textBlock
window.Show()
```

