Author: kkaempf Date: Tue May 20 13:29:39 2008 New Revision: 47705 URL: http://svn.opensuse.org/viewcvs/yast?rev=47705&view=rev Log: example cleanup Modified: trunk/libyui-bindings/swig/perl/examples/hello_world.pl trunk/libyui-bindings/swig/python/examples/hello_world.py trunk/libyui-bindings/swig/ruby/examples/hello_world.rb Modified: trunk/libyui-bindings/swig/perl/examples/hello_world.pl URL: http://svn.opensuse.org/viewcvs/yast/trunk/libyui-bindings/swig/perl/examples/hello_world.pl?rev=47705&r1=47704&r2=47705&view=diff ============================================================================== --- trunk/libyui-bindings/swig/perl/examples/hello_world.pl (original) +++ trunk/libyui-bindings/swig/perl/examples/hello_world.pl Tue May 20 13:29:39 2008 @@ -12,4 +12,4 @@ $factory->createLabel( $vbox, "Hello, World!" ); $factory->createPushButton( $vbox, "&OK" ); my $event = $dialog->waitForEvent(); -#$dialog->destroy(); +$dialog->destroy(); Modified: trunk/libyui-bindings/swig/python/examples/hello_world.py URL: http://svn.opensuse.org/viewcvs/yast/trunk/libyui-bindings/swig/python/examples/hello_world.py?rev=47705&r1=47704&r2=47705&view=diff ============================================================================== --- trunk/libyui-bindings/swig/python/examples/hello_world.py (original) +++ trunk/libyui-bindings/swig/python/examples/hello_world.py Tue May 20 13:29:39 2008 @@ -6,8 +6,9 @@ sys.path.append('../../../build/bindings/python') import yui -factory = yui.YUI.widgetFactory(); -dialog = factory.createPopupDialog(); +factory = yui.YUI.widgetFactory() +dialog = factory.createPopupDialog() + vbox = factory.createVBox( dialog ) factory.createLabel( vbox, "Hello, World!" ) factory.createPushButton( vbox, "&OK" ) Modified: trunk/libyui-bindings/swig/ruby/examples/hello_world.rb URL: http://svn.opensuse.org/viewcvs/yast/trunk/libyui-bindings/swig/ruby/examples/hello_world.rb?rev=47705&r1=47704&r2=47705&view=diff ============================================================================== --- trunk/libyui-bindings/swig/ruby/examples/hello_world.rb (original) +++ trunk/libyui-bindings/swig/ruby/examples/hello_world.rb Tue May 20 13:29:39 2008 @@ -9,10 +9,11 @@ class LoadTest < Test::Unit::TestCase def test_hello_world require 'yui' - dialog = Yui::YUI::widget_factory.create_popup_dialog - vbox = Yui::YUI::widget_factory.create_vbox dialog - Yui::YUI::widget_factory.create_label vbox, "Hello, World!" - Yui::YUI::widget_factory.create_push_button vbox, "&OK" + factory = Yui::YUI::widget_factory + dialog = factory.create_popup_dialog + vbox = factory.create_vbox dialog + factory.create_label vbox, "Hello, World!" + factory.create_push_button vbox, "&OK" event = dialog.wait_for_event dialog.destroy end -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org