All pastes #985285 Raw Edit

Untitled

public text v1 · immutable
·published 2008-04-14 22:02 UTC
rendered paste body
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# main.py
# Copyright (C) Julio C. Hernández G. 2008 <juliochg@gmail.com>
# 
# main.py is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# main.py is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License along
# with this program.  If not, see <http://www.gnu.org/licenses/>.
import sys
import os
try:           
    import gtk
    import pygtk
    import gtk.glade
    pygtk.require('2.0')                
class main:
	def __init__(self):
		print "Loro"
		self.archivoglade = "loro.glade"
		self.wTree = gtk.glade.XML(self.archivoglade)
		self.window = self.wTree.get_widget("ventana_principal")
## corre el programa
programa = main()
programa.window.show()
gtk.main()

me da este error cuando quiero cargar la interfaz grafica
julioh@wipo:~/Desktop$ python loro.py 
  File "loro.py", line 26
    class main:
        ^
SyntaxError: invalid syntax