Canvas event handling: Difference between revisions

Jump to navigation Jump to search
m
Line 154: Line 154:
#  Shows an icon in the top-right corner which upon click opens a simple window
#  Shows an icon in the top-right corner which upon click opens a simple window
#
#
(func {
var init_gui = setlistener("/nasal/std/loaded", func() {
  removelistener(init_gui);
   var dlg = canvas.Window.new([32,32]);
   var dlg = canvas.Window.new([32,32]);
   dlg.setInt("tf/t[1]", 4)
   dlg.setInt("tf/t[1]", 4)
Line 197: Line 194:
   });
   });
});
});
})();
</syntaxhighlight>
</syntaxhighlight>


<references/>
<references/>

Navigation menu