python e tkinter
DESCRIPTION
Palestra Python e TkinterTRANSCRIPT
-
Python e TkinterAplicaes Grficas fcil e rpido.
-
Bruno [email protected]
-
Mais sobre min
Associao Python Brasil
-
Serra do estrondo - Axix - TO ( 1 de maio de 2015)
-
AgendaIFMA1. Call Jobs - 05 de Maio2. GDG Meetup - 09 de Maio3. Google IO - 28 de Maio
APYBR1. Python Brasil - 13 a 17 de Outubro
AIPI1. Quarto Passeio de Patins Inline - 24 de Maio
-
PYTHON1. Interpretador interativo2. Indentao obrigatria3. Compilador de bytecode4. Polimorfismo5. multi paradigma6. Biblioteca padro
-
TkinterBaseada em Tcl/Tk, a Tkinter acompanha a distribuio oficial do
interpretador Python. ( O TK GUI toolkit no faz parte do Python).
Licena: Python (permite escrever livremente softwares comerciais, GPL ou sob
qualquer outra licena). TK GUI toolkit ( BSD-style - impe poucas restries quando comparada
aquelas impostas por outras licenas )
Plataformas:Unix, Linux, Windows, MacOS/X
-
VANTAGENS
Portabilidade Aprendizado Documentao
DESVANTAGEM
Pobre Aparncia Performance
Tkinter
-
Tkinter - Exemplo de cdigofrom 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()
-
Tkinter - Vocabulrio Widget Evento Event handlers binding
-
Tkinter - continers e pack
-
Tkinter - Posicionando
-
Tkinter - BindingSintaxe:
widget.bind( evento, event handler)
Alguns eventos:"", "", "", "", "",
"",
-
Tkinter - Command bindingSintaxe:
1. Widget(master, ...., command = self.event_handler)2. self.nome_do_widget['command']=self.event_handler
Obs.: No precisa de informar o evento.
-
Tkinter - Widgets Windows Linux Osx
-
Perguntas e algo mais
-
Obrigado