Mercurial > projects > dwt-linux
view helloworld.d @ 36:f0cac58ac62b
added helloworld, certainly not yet compiling/working
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 10 Jan 2008 05:01:46 +0100 |
parents | |
children | 8f049b136add |
line wrap: on
line source
module helloworld; import dwt.SWT; import dwt.widgets.Display; import dwt.widgets.Shell; void main(){ Display display; Shell shell; display = new Display(); shell = new Shell(display); shell.setText("Simple SWT Sample"); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } }