diff options
author | Yader 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) |
commit | 8e2b57cbb62f98921da0369a8811102efdce9bb4 (patch) | |
tree | 0bfb1301eb5e14fdaf7913c983ce1d80e2dc4bb0 /archivo.py | |
parent | b4607aaa9e7f452f54adad6ae6525819a12ee191 (diff) |
ya funciona la vista de actividades con textview
Diffstat (limited to 'archivo.py')
-rw-r--r-- | archivo.py | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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''' |