Guest User

Untitled

a guest
Feb 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Test {
  4. public class MainClass {
  5. public static void Main (string[] args)
  6. {
  7. Gtk.Application.Init ();
  8. var w = new Gtk.Window ("Test");
  9. var t = new Gtk.TreeView ();
  10. t.ButtonPressEvent += delegate {
  11. Console.WriteLine ("Clicked");
  12. };
  13. w.Add (t);
  14. w.ShowAll ();
  15. Gtk.Application.Run ();
  16. }
  17. }
  18. }
Add Comment
Please, Sign In to add comment