From 8e2b57cbb62f98921da0369a8811102efdce9bb4 Mon Sep 17 00:00:00 2001 From: Yader Velásquez Date: Sun, 29 Aug 2010 02:27:06 +0000 Subject: ya funciona la vista de actividades con textview --- (limited to 'archivo.py') diff --git a/archivo.py b/archivo.py index 924943b..7bcf6d9 100644 --- a/archivo.py +++ b/archivo.py @@ -15,10 +15,19 @@ # #You should have received a copy of the GNU General Public License #along with this program. If not, see . -# -#Utils for make a date dictionary and save it in a file +import gtk import pickle +import gobject + +def crear_modelo(): + '''create a define liststore model''' + modelo = gtk.ListStore(gobject.TYPE_INT, gobject.TYPE_STRING) + contador = modelo.append() + modelo.set(contador, 1, 'Hola Mundo') + contador = modelo.append() + modelo.set(contador, 1, 'Hi') + return modelo def guardar_dato(indice, contenido, archivo): '''get a id dependig of the unix time, and the content''' -- cgit v0.9.1