#!/usr/bin/python # -*- coding: utf-8 -*- # # main.py # Copyright (C) Julio C. Hernández G. 2008 # # 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 . import sys import os try: import gtk import pygtk import gtk.glade pygtk.require('2.0') except: print "hola" 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()