* Makefile.am:
[monodevelop.git] / extras / PythonBinding / templates / PythonGtkProject.xpt.xml
bloba9e2a56b9397f042de73dacbb62ac2052e13bb2e
1 <?xml version="1.0"?>
2 <Template originator   = "John Luke"
3           created      = "04/25/2004"
4           lastModified = "04/25/2004">
5         
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>
14         
15         <!-- Actions -->
16         <Actions>
17                 <Open filename = "main.py"/>
18         </Actions>
19         
20         <!-- Template Content -->
21         <Combine name = "${ProjectName}" directory = ".">
22                 <Options>
23                         <StartupProject>${ProjectName}</StartupProject>
24                 </Options>
25                 
26                 <Project name = "${ProjectName}" directory = ".">
27                         <Options/>
28                         <Files>
29                                 <!-- this is the included IronPython example -->
30                                 <File name="main.py"><![CDATA[import Gtk
31                                                                                 
32 Gtk.Application.Init()
33 w = Gtk.Window("hello world")
34 w.DeleteEvent += lambda *ignore: Gtk.Application.Quit()
35                                                                                 
36 b = Gtk.Button("click me")
37                                                                                 
38 def say_hello(o, args): print "hello"
39                                                                                 
40 b.Clicked += say_hello
41                                                                                 
42 w.Add(b)
43 w.ShowAll()
44 Gtk.Application.Run()]]></File>
45                         </Files>
46                 </Project>
47         </Combine>
48 </Template>