~ubuntu-branches/ubuntu/lucid/gco/lucid

« back to all changes in this revision

Viewing changes to src/gco.py

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hocevar (Debian packages)
  • Date: 2006-08-31 12:35:42 UTC
  • mfrom: (3.1.2 edgy)
  • Revision ID: james.westby@ubuntu.com-20060831123542-mc4q70vmhci7jkx7
Tags: 0.5.0-6
Update package to the last python policy, courtesy of Pierre Habouzit
(Closes: #380807).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
 
 
3
##   GNOME Comics Organizer - Python Branch
 
4
##   Copyright (C) 2004 Mads Villadsen <maxximum@krakoa.dk>
 
5
    
 
6
##   This program is free software; you can redistribute it and/or modify
 
7
##   it under the terms of the GNU General Public License as published by
 
8
##   the Free Software Foundation; either version 2 of the License, or
 
9
##   (at your option) any later version.
 
10
   
 
11
##   This program is distributed in the hope that it will be useful,
 
12
##   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
##   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
##   GNU General Public License for more details.
 
15
   
 
16
##   You should have received a copy of the GNU General Public License
 
17
##   along with this program; if not, write to the Free Software
 
18
##   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
19
 
 
20
import os, sys
 
21
 
 
22
sys.path.append("/usr/local/share/gco/")
 
23
 
 
24
import co
 
25
from globals import *
 
26
 
 
27
try:
 
28
    import pygtk
 
29
    pygtk.require ("2.0")
 
30
    import gtk, gtk.glade, gnome, gnome.ui
 
31
except:
 
32
    print "pyGTK 2.0 not found."
 
33
 
 
34
gnome.init(program_name, program_version)
 
35
 
 
36
if __name__ == '__main__':
 
37
    app = co.gco_mainwindow ()
 
38
    gtk.main ()