2 <Template originator = "John Luke"
4 lastModified = "04/25/2004">
6 <!-- Template Header -->
7 <TemplateConfiguration>
8 <_Name>Python Gtk Project</_Name>
9 <_Category>Python</_Category>
10 <Icon>C#.Project.DOSProject</Icon>
11 <LanguageName>Python</LanguageName>
12 <_Description>Python Gtk Project</_Description>
13 </TemplateConfiguration>
17 <Open filename = "main.py"/>
20 <!-- Template Content -->
21 <Combine name = "${ProjectName}" directory = ".">
23 <StartupProject>${ProjectName}</StartupProject>
26 <Project name = "${ProjectName}" directory = ".">
29 <!-- this is the included IronPython example -->
30 <File name="main.py"><![CDATA[import Gtk
32 Gtk.Application.Init()
33 w = Gtk.Window("hello world")
34 w.DeleteEvent += lambda *ignore: Gtk.Application.Quit()
36 b = Gtk.Button("click me")
38 def say_hello(o, args): print "hello"
40 b.Clicked += say_hello
44 Gtk.Application.Run()]]></File>