Gtk2SVG: Creating an onmousemove event

require 'gtk2svg'


s =<<SVG
<svg width="400" height="110">
  <script>
    def hello()
      puts 'hello world'
    end
  </script>
  <rect width="300" height="100" onmousemove="hello()" style="fill:rgb(0,0,255);stroke-width:3;stroke:rgb(0,0,0)" />
</svg>
SVG

app = Gtk2SVG::Main.new s

Resources