Author: kkaempf Date: Fri May 16 16:12:01 2008 New Revision: 47618 URL: http://svn.opensuse.org/viewcvs/yast?rev=47618&view=rev Log: crap, doesn't work :-( Added: trunk/libyui-bindings/swig/perl/examples/hello_world.pl trunk/libyui-bindings/swig/python/examples/hello_world.py Added: trunk/libyui-bindings/swig/perl/examples/hello_world.pl URL: http://svn.opensuse.org/viewcvs/yast/trunk/libyui-bindings/swig/perl/example... ============================================================================== --- trunk/libyui-bindings/swig/perl/examples/hello_world.pl (added) +++ trunk/libyui-bindings/swig/perl/examples/hello_world.pl Fri May 16 16:12:01 2008 @@ -0,0 +1,13 @@ +#!/usr/bin/perl +# +# Trivial libyui example +# + +use yui; + +my $dialog = yui::YUI->widgetFactory()->create_popup_dialog(); +#my $vbox = ->create_vbox( $dialog ); +#factory->create_label( $vbox, "Hello, World!" ); +#factory->create_push_button( $vbox, "&OK" ); +#my $event = $dialog->wait_for_event(); +#$dialog->destroy(); Added: trunk/libyui-bindings/swig/python/examples/hello_world.py URL: http://svn.opensuse.org/viewcvs/yast/trunk/libyui-bindings/swig/python/examp... ============================================================================== --- trunk/libyui-bindings/swig/python/examples/hello_world.py (added) +++ trunk/libyui-bindings/swig/python/examples/hello_world.py Fri May 16 16:12:01 2008 @@ -0,0 +1,14 @@ +# +# Trivial libyui example +# + +import sys +sys.path.append('../../../build/bindings/python') +import yui + +dialog = yui.YWidgetFactory.createPopupDialog() +vbox = yui.YWidgetFactory_createVBox( dialog ) +yui.YWidgetFactory_createLabel( vbox, "Hello, World!" ) +yui.YWidgetFactory_createPushButton( vbox, "&OK" ) +event = dialog.waitForEvent() +dialog.destroy() -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org