Skip to Main Content
USE A CABEÇA! PROGRAMAÇÃO
book

USE A CABEÇA! PROGRAMAÇÃO

by David Griffiths, Paul Barry
January 2009
Beginner to intermediate content levelBeginner to intermediate
440 pages
13h 6m
Portuguese (Portugal, Brazil)
Alta Books
Content preview from USE A CABEÇA! PROGRAMAÇÃO
GUI’s e dados
você está aqui 267
interface criada
O botão Save na interface irá chamar uma função
denominada save_data(). A função irá anexar os dados
da GUI ao nal do arquivo deliveries.txt formatado
assim:
Então, precisará limpar os campos no formulário para deixá-los prontos para o próximo
registro a ser fornecido. A função terá que aparecer no programa antes do código GUI. Você
teve que escrever o código para a função aqui:
Depot:
Seattle, WA
Description:
Books
Address:
1 Main Street
Anytown
WA
def save_data():
fileD = open(“deliveries.txt", “a")
fileD.write(“Depot:\n")
fileD.write(“%s\n" % depot.get())
fileD.write(“Description:\n")
fileD.write(“%s\n" ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

USE A CABEÇA! ÁLGEBRA

USE A CABEÇA! ÁLGEBRA

Tracey Pilon, Dan Pilon
Use A Cabeça Ágil

Use A Cabeça Ágil

Jennifer Stellman, Andrew Greene
Use A Cabeça Padrões E Projetos

Use A Cabeça Padrões E Projetos

Eric Freeman, Elisabeth Freeman, Kathy Sierra, Bert Bates

Publisher Resources

ISBN: 9788576084730