Mercurial > projects > dwt-linux
view helloworld.d @ 46:8015c460f713
Synchronizer
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 11 Jan 2008 07:11:08 +0100 |
parents | f0cac58ac62b |
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(); } } }