Getting started
Installed? try now.
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.pyOr, For Python 2
python myscript.py

 Nothing!!! but a blank page.
 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! 


Last updated
Was this helpful?
