# Getting started

To get things started we will try to run a very simpl GUI based  application using the DicksonUI . First create a small Python script called `hello.py` with the following content and save it somewhere:

### Initialize a Window

First, let's create a new Application.

```
from dicksonui import Application, window
mywindow=window()
document=mywindow.document
App = Application(('',1024))
App.Add(mywindow)
mywindow.show()
```

**Run!!!**

Run your code. For Python 3

```
python3 myscript.py
```

Or, For Python 2

```
python myscript.py
```

![disappointed\_relieved](https://github.githubassets.com/images/icons/emoji/unicode/1f625.png)![disappointed\_relieved](https://github.githubassets.com/images/icons/emoji/unicode/1f625.png)![disappointed\_relieved](https://github.githubassets.com/images/icons/emoji/unicode/1f625.png) Nothing!!! but a blank page.

#### **Add items to form**

Okay, now that we will learn about Controls

```
from dicksonui import Application, window
mywindow=window()
document=mywindow.document
App = Application(('',1024))
App.Add(mywindow)
heading=document.createElement('h1')
heading.innerHTML='Hello World!'
document.body.appendChild(heading)
mywindow.show()
```

Run it.

Hello World! ![blush](https://github.githubassets.com/images/icons/emoji/unicode/1f60a.png)![blush](https://github.githubassets.com/images/icons/emoji/unicode/1f60a.png)![blush](https://github.githubassets.com/images/icons/emoji/unicode/1f60a.png)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dicksonui.gitbook.io/docs/usage/getting-started.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
