Código: Selecionar todos
DEFINE WINDOW
DEFINE outros
....
END WINDOW
Pode ser:
Código: Selecionar todos
DEFINE WINDOW
END WINDOW
DEFINE outros
....
Moderador: Moderadores

Código: Selecionar todos
DEFINE WINDOW
DEFINE outros
....
END WINDOW
Código: Selecionar todos
DEFINE WINDOW
END WINDOW
DEFINE outros
....


Código: Selecionar todos
Define Window capa_pedido ...
end window
Define window itens_pedido ...
end window
Define window credito_cobranca
end window
...
...
Define label "Pedido No."
col 10
rows 10
PARENT capa_pedido
...
end label
Define label "Produto"
col 10
rows 10
PARENT itens_pedido
...
end label
Define label "Credito"
col 10
rows 10
PARENT credito_cobranca
...
end label
...
...
ACTIVATE WINDOW capa_pedido
ACTIVATE WINDOW itens_pedido
ACTIVATE WINDOW credito_cobranca

Por isso é essa torre de BABEL! Cada um faz de qualquer jeito.Não precisa ser desse jeito.
Pode ser:
Código: Selecionar todos
import gtk
class HelloWorld(gtk.Window):
def __init__(self):
gtk.Window.__init__(self)
self.connect("delete_event", gtk.main_quit)
self.set_border_width(10)
self.set_title("Hello World!")
hbox = gtk.HBox()
self.add(hbox)
self.button1 = gtk.Button("Button 1")
self.button1.connect("clicked", self.button_pressed_cb)
hbox.pack_start(self.button1)
self.button2 = gtk.Button("Button 2")
self.button2.connect("clicked", self.button_pressed_cb)
hbox.pack_start(self.button2)
def button_pressed_cb(self, button):
print "Hello again - %s was pressed" % button.get_label()
if __name__ == "__main__":
win = HelloWorld()
win.show_all()
gtk.main()
Código: Selecionar todos
from tkinter import *
class App:
def __init__(self, master):
frame = Frame(master)
frame.pack()
self.button = Button(frame, text="QUIT", fg="red",
command=frame.quit)
self.button.pack(side=LEFT)
self.hi_there = Button(frame, text="Hello",
command=self.say_hi)
self.hi_there.pack(side=LEFT)
def say_hi(self):
print("hi there, everyone!")
root = Tk()
app = App(root)
root.mainloop()

