#!/usr/bin/env python

from gi.repository import GtkClutter
GtkClutter.init([])
from gi.repository import GObject, Gtk, GtkChamplain, Champlain 

GObject.threads_init()
GtkClutter.init([])

window = Gtk.Window(type=Gtk.WindowType.TOPLEVEL)
window.connect("destroy", Gtk.main_quit)

widget = GtkChamplain.Embed()
widget.set_size_request(640, 480)

view = widget.get_view()
layer = Champlain.PathLayer();
view.add_layer(layer)

for i in xrange(0, 100000):
#  print i;
  coord = Champlain.Coordinate()
  coord.set_location(i / 2000.0, i / 2000.0)
  layer.add_node(coord)

window.add(widget)
window.show_all()

Gtk.main()

