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
308 Capítulo 8½
obtenha a mensagem
As pessoas na Head-Ex querem que seu programa exiba
esta caixa de mensagem se houver um problema para salvar
um registro no arquivo deliveries.txt:
Complete as linhas que faltam nesta seção de seu programa para criar a caixa de mensagem.
Sugestão: Você precisa incluir uma nova linha no texto da caixa de mensagem.
from tkinter import *
import tkinter.messagebox
def save_data():
try:
leD = open(“deliveries.txt”, “a”)
leD.write(“Depot:\n”)
leD.write(“%s\n” % depot.get())
leD.write(“Description:\n”)
leD.write(“%s\n” % description.get())
leD.write(“Address:\n”)
leD.write(“%s\n” % address.get(“1.0”, END))
depot.set(“”) ...
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