diff options
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''' |