Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/archivo.py
diff options
context:
space:
mode:
authorYader Velásquez <yajosev@gmail.com>2010-08-29 02:27:06 (GMT)
committer Yader Velásquez <yajosev@gmail.com>2010-08-29 02:27:06 (GMT)
commit8e2b57cbb62f98921da0369a8811102efdce9bb4 (patch)
tree0bfb1301eb5e14fdaf7913c983ce1d80e2dc4bb0 /archivo.py
parentb4607aaa9e7f452f54adad6ae6525819a12ee191 (diff)
ya funciona la vista de actividades con textview
Diffstat (limited to 'archivo.py')
-rw-r--r--archivo.py13
1 files changed, 11 insertions, 2 deletions
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 <http://www.gnu.org/licenses/>.
-#
-#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'''