D Programming/DUI

From Wikibooks, open books for an open world
Jump to navigation Jump to search

To be completed.

Duit (formerly DUI; now GtkD) is a D language graphical user interface wrapping (or binding) GTK+ graphical toolkit

GtkD is released under the LGPL license.

GtkD Code Example[edit | edit source]

import gtk.MainWindow;
import gtk.Label;
import gtk.Main;
void main( string[] args )
 MainWindow win = new MainWindow("Hello World");
 win.setDefaultSize(200, 100);
 win.add(new Label("Hello World"));
 Main.run();   // here was Main.main(), which was wrong

Its main website is:

Older out-of-date websites are