/src/wrappers/gtk/examples/hello/my_button.e

http://github.com/tybor/Liberty · Specman e · 19 lines · 17 code · 2 blank · 0 comment · 0 complexity · 10da0633acd0f9913c9d6f5531a837f9 MD5 · raw file

  1. class MY_BUTTON
  2. inherit
  3. GTK_BUTTON
  4. redefine with_label, on_clicked
  5. end
  6. creation make,with_label
  7. feature
  8. on_clicked is
  9. do
  10. print ("Hello from `my-button'. I was called with the built-in clicked signal handler%N")
  11. end
  12. with_label (a_label:STRING) is
  13. do
  14. Precursor (a_label)
  15. enable_on_clicked
  16. end
  17. end