examples master
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Tue, 13 Nov 2007 15:44:23 +0000 (16:44 +0100)
committervisnov <visnov@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Wed, 14 Nov 2007 08:33:39 +0000 (08:33 +0000)
examples/example-1.ycp
examples/example-4.ycp [new file with mode: 0644]

index 4997e13..16060f8 100644 (file)
@@ -4,7 +4,7 @@
     // then close the dialog and terminate.
 
     UI::OpenDialog(
-               `Label( "&OK" )
+               `PushButton( "&OK" )
                );
 
     UI::UserInput();
diff --git a/examples/example-4.ycp b/examples/example-4.ycp
new file mode 100644 (file)
index 0000000..4997e13
--- /dev/null
@@ -0,0 +1,13 @@
+{
+    // Build a dialog with one button.
+    // Wait until that button is clicked,
+    // then close the dialog and terminate.
+
+    UI::OpenDialog(
+               `Label( "&OK" )
+               );
+
+    UI::UserInput();
+    UI::CloseDialog();
+}
+