Python - Funciones python 2.6 (2)

 
Vista:
Imágen de perfil de Daniel

Funciones python 2.6 (2)

Publicado por Daniel (11 intervenciones) el 22/01/2013 11:32:08
El codigo que me distes en el otro post no me valio.
te doy mi programa y dime en que falla.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
from Tkinter import*
ventana=Tk()
titulo = Label(ventana, text="Text Editor 1.0", fg="brown")
titulo.pack()
 
def a():
    exit()
 
def b():
    if b1():
       file=open("a.txt", "a")
       file.write(texto)
       file.write(texto2)
       file.write(texto3)
       file.write(texto4)
       file.write(texto5)
       file.write(texto6)
       file.write(texto7)
       file.write(texto8)
       file.write(texto9)
       file.write(texto10)
       file.write(texto11)
       file.write(texto12)
       file.write(texto13)
       file.write(texto14)
       file.write(texto15)
       #para cerrar el archivo 
       file.close()
 
f1=Frame(ventana)
b1=Button (f1, text="Guardar", bg="blue", command=b)
b2=Button (f1, text="Salir", bg="red", command=a)
 
b1.pack(side="left")
b2.pack(side="left")
 
f1.pack()
f2=Frame(ventana)
texto=Entry(f2, bg="white")
texto.pack()
f2.pack()
ayuda = Label(f2, text="Cada cuadro representa una linea", fg="purple")
texto2 = Entry(f2, bg="white")
texto2.pack()
texto3 = Entry(f2, bg="white")
texto3.pack()
texto4 = Entry(f2, bg="white")
texto4.pack()
texto5 = Entry(f2, bg="white")
texto5.pack()
texto6 = Entry(f2, bg="white")
texto6.pack()
texto7 = Entry(f2, bg="white")
texto7.pack()
texto8 = Entry(f2, bg="white")
texto8.pack()
texto9 = Entry(f2, bg="white")
texto9.pack()
texto10 = Entry(f2, bg="white")
texto10.pack()
texto11 = Entry(f2, bg="white")
texto11.pack()
texto12 = Entry(f2, bg="white")
texto12.pack()
texto13 = Entry(f2, bg="white")
texto13.pack()
texto14 = Entry(f2, bg="white")
texto14.pack()
texto15 = Entry(f2, bg="white")
texto15.pack()
ayuda.pack()
dire = Label(f2, text="Write the file directory:", fg="brown")
dire.pack()
dire2 = Entry(f2, bg="blue")
dire2.pack()




ya probé a poner texto donde me dijistes pero ni con esas , pruebaló e intenta arreglarlo.
Tengo 12 años y esto es complicado para mi.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder