Mailinglist Archive: yast-commit (723 mails)

< Previous Next >
[yast-commit] r47489 - /trunk/libyui-bindings/swig/ruby/examples/selection_box1.rb
  • From: kkaempf@xxxxxxxxxxxxxxxx
  • Date: Tue, 13 May 2008 12:12:08 -0000
  • Message-id: <20080513121208.782CE32C55@xxxxxxxxxxxxxxxx>
Author: kkaempf
Date: Tue May 13 14:12:08 2008
New Revision: 47489

URL: http://svn.opensuse.org/viewcvs/yast?rev=47489&view=rev
Log:
update

Modified:
trunk/libyui-bindings/swig/ruby/examples/selection_box1.rb

Modified: trunk/libyui-bindings/swig/ruby/examples/selection_box1.rb
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/libyui-bindings/swig/ruby/examples/selection_box1.rb?rev=47489&r1=47488&r2=47489&view=diff
==============================================================================
--- trunk/libyui-bindings/swig/ruby/examples/selection_box1.rb (original)
+++ trunk/libyui-bindings/swig/ruby/examples/selection_box1.rb Tue May 13
14:12:08 2008
@@ -42,26 +42,30 @@
#

loop do
+puts "Begin of loop"
event = dialog.wait_for_event
next unless event
-
+puts "Event #{event}"
break if event.event_type == Yui::YEvent::CancelEvent # window manager
"close window" button
+puts "Not a cancel"
valueField.set_value "???"
break if event.widget == closeButton
+puts "Not a close"

if ( event.widget == valueButton ||
event.widget == selBox ) # selBox will only send events
with setNotify()
item = selBox.selected_item
+ puts "selBox or valueButton"
if item
valueField.set_value item.label
else
valueField.set_value "<none>"
end
+ puts "valueField set"
end
- event = nil
+ puts "Done with loop"
end
-
-# dialog.destroy
+ puts "Out of loop"
end
end


--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages