Package icaro-bloques :: Module nuevo'
[hide private]
[frames] | no frames]

Source Code for Module icaro-bloques.nuevo'

 1  #!/usr/bin/python 
 2  # -*- coding: utf-8 -*- 
 3   
 4  # This program is free software: you can redistribute it and/or modify 
 5  # it under the terms of the GNU General Public License as published by 
 6  # the Free Software Foundation, either version 3 of the License, or 
 7  # (at your option) any later version. 
 8  # 
 9  # This program is distributed in the hope that it will be useful, 
10  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
11  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
12  # GNU General Public License for more details. 
13  import gtk 
14  import os 
15 -def nuevo(fon):
16 fon.objetos=[] 17 fon.objetos_datos=[0] 18 fon.tipo_obj=[0] 19 fon.tipo_obj_datos=[0] 20 21 fon.lista_ordenada=[] 22 fon.lista_fina=[] 23 fon.identificador=1 24 fon.identificador_dat=1 25 fon.identificador_dat2=1 26 fon.lista_valor_datos=[] 27 fon.lista_valor_datos2=[] 28 #~ fon.tipo_obj=[0] 29 #~ fon.tipo_obj_datos=[0] 30 #~ fon.objetos=[0] 31 #~ fon.objetos_datos=[0] 32 fon.componentes.empty() 33 fon.datos.empty() 34 #~ fon.lista_cm=[] 35 #~ fon.lista_ch=[] 36 #~ fon.lista_ordenada=[] 37 #~ fon.lista_fina=[] 38 #~ fon.lista_ch_dato=[] 39 #~ fon.lista_ch_dato2=[] 40 #~ fon.identificador=1 41 #~ fon.identificador_dat=1 42 #~ fon.identificador_dat2=0 43 #~ fon.lista_valor_datos=[] 44 #~ fon.lista_valor_datos2=[] 45 #~ fon.lista_parser=[] 46 #~ fon.lista_parser_final=[] 47 #~ fon.lista_cm.append((0,0,0,0)) 48 #~ fon.lista_ch.append((0,0,0,0)) 49 #~ fon.lista_ch_dato.append((0,0,0,0)) 50 #~ fon.lista_ch_dato2.append((0,0,0,0)) 51 #~ 52 #~ fon.lista_valor_datos2.append("0") 53 #~ fon.lista_ordenada.append(0) 54 #~ fon.lista_fina.append(0) 55 #~ fon.lista_parser.append("") 56 #~ fon.lista_parser.append("") 57 #~ fon.lista_parser_final.append("") 58 #~ fon.lista_parser_final.append("") 59 fon.lista_ordenada.append(0) 60 print "nuevo",fon.identificador_dat
61