TkinterGUIApplicationDevelopmentHOTSHOT
Tkinter GUI Application Development HOTSHOT高清晰版Tkinter GUl Application DevelopmentH④SHoTCopyright o 2013 Packt PublishingAll rights reserved. No part of this book may be reproduced stored in a retrieval systemor transmitted in any form or by any means, without the prior written permission of thepublisher, except in the case of brief quotations embedded in critical articles or reviews.Every effort has been made in the preparation of this book to ensure the accuracy of theinformation presented. However the information contained in this book is sold withoutwarranty, either express or implied. Neither the author, nor packt Publishing and its dealersand distributors will be held liable for any damages caused or alleged to be caused directly orin directly by this bookPackt Publishing has endeavored to provide trademark information about all of thecompanies and products mentioned in this book by the appropriate use of capitalsHowever, Packt Publishing cannot guarantee the accuracy of this informationFirst published: October 2013Production reference: 1211013Published by packt Publishing LtdPla35 Livery StreetBirmingham B3 2PB UK.SBN978-184969794-1www.packtpub.comCover Image by manu Gangadhar(manug 30agmail. com)CreditsAuthorProject CoordinatorBhaskar ChaudharyAngel JathannaReviewersProofreadersAnkur AggarwalSimran BhogalMike driscollMaria GouldAnshuman PandeyAlejandro rodas de pazIndexerRekha nairAcquisition EditorPramila balanGraphicsAbhinash sahead technical editorChalini sega victorProduction CoordinatorsAlwin RoyTechnical editorsNitesh thakurJalasha d'costaDipika GaonkarCover workNitesh ThakurKapil HernaniAkashdeep KunduMrunmayee PatilAbout the AuthorBhaskar Chaudhary is a professional programmer and information architect. he hasalmost 9 years of consulting, contracting, and educating experience in the field of softwaredevelopment. He has worked with a large set of programming languages on variousplatforms over the yearsHe is an electronics hobbyist and musician in his free timeI would like to thank my parents for everything that they have done for meThanks to my wife sangita who provided valuable support at every stageof writing of this book. thanks to my friend Souvik, sisters Priyanki andShambhavi, and nephew praneet and niece aakansha for being aroundAnurag you are al ways remembered and a source of inspirationI would like to thank Angel Jathanna, the project Coordinator, for hertimely input and feed back during the course of writing I'd also like tothank Pramila balan the acquisition editor, and Chalini Snega victor, theead Technical Editor, for making several helpful suggestions with regardto the books structure, technical accuracy, and quality control. Thanks toReshma raman the author relations executive for getting me involved inthe projectI would also like to than k my reviewers alejandro rodas for providingcountless suggestions to improve the code michael driscoll for pointingout otherwise unnoticeable errors, Anshuman for testing out programs andpointing errors, and ankur Aggarwal for providing suggestions for makingthe book more reader friendlyFinally thanks to the python community for being such a supportive groupand to entire team at Packt Publishing, for publishing great books in theopen source domainAbout the reviewersAnkur Aggarwal is currently working in the education and research departmentof Infosys Limited. he loves to play with Unix and Linux tools. he has created variousautomation tools using Python, PHP, and is learning linux Kernel development. he is alsoan author of various international magazines and portals such as open Source For You(previously Linux For You), Ubuntumanualorg and richnusgeek He runs a linux based blogtooonwww.flossstuff.wordpresscomHelovescodingandlisteningtometalmusicheisadie hard fan of iron maiden and loves playing the guitar in his free time.Mike Driscoll has been programming in Python since Spring 2006. he enjoys writing aboutPythononhisblog:http://www.blog.pythonlibrary.org/.HealsooccasionallywritesforthePython Software Foundation, i-Programmer, and Developer Zone. He enjoys photographyand reading a good book. mike has also been a technical reviewer for python 3 ObjectOriented Programming Python 2.6 Graphics Cookbook, and the python Web DevelopmentBeginner's Guide among othersI would like to thank my wonderful wife Evangeline for al ways supportingme. i would also like to thank friends and family for all that they do to helpme And i would like to thank jesus Christ for saving meAnshuman Pandey holds a Bachelor's degree in technology in Computer Science andEngineering. Being a software developer, he is always eager to learn and build upon newtechnologies. He is also an avid blogger endurance runner and tennis enthusiast. Currentlemployed as an analyst at a software consulting firm, anshuman has extensive hands onexperience with data analysis and programming he picked up python by himself as anundergraduate, and has since worked on a variety of python projects as well as reviewedbooks on the subjectBeing enthusiastic about sharing ideas and collaborating with like- minded individualsAnshuman is an up-and-coming blogger. he manages his own website twisted Thoughtswhere he shares his thoughts on everything from cool new technologies and nifty softwaretricks to tennis and life lessons. His blog has proved to be a good portal to network withyoung professionals with similar interestsI would like to thank my parents for being supportive in my first ventureas a book reviewer, my band of friends for encouraging me, and packtPublishing for giving me the wonderful opportunity to review this bookAlejandro rodas de paz is a Computer Engineer from the university of Seville(spain)He started programming in python for artificial intelligence and data mining projects,and discovered Tkinter as an easy and effective way to develop gul applications. Heworked at research institutions such as the Web Engineering and early Testing group,and the medialab amsterdamI would like to thank my grandmother Crescencia for her unconditionalupport, trust, and love during all my lifewwW PacktPub comSupport filles, eBooks, discount offers, and moreYoumightwanttovisitwww.Packtpub.comforsupportfilesanddownloadsrelatedto your bookDid you know that packt offers e book versions of every book published with PDf and ePubfilesavailableYoucanupgradetotheebooKversionatwww.Packtpub.comandasaprintbook customer, you are entitled to a discount on the e book copy get in touch with us atservice@packtpub com for more detailsAtwww.Packtpub.comyoucanalsoreadacollectionoffreetechnicalarticles,signupfora range of free newsletters and receive exclusive discounts and offers on packt books andeBooksPACKTLIB°http://packtlib.Packtpub.cormDo you need instant solutions to your IT questions? PacktLib is Packt's online digital booklibrary. here, you can access, read and search across packt 's entire library of booksWhy Subscribe?Fully searchable across every book published by packtCopy and paste print and bookmark contentOn demand and accessible via web browserFree Access for packt account holdersIfyouhaveanaccountwithPacktatwww.Packtpub.comyoucanusethistoaccessPacktLib today and view nine entirely free books. Simply use your login credentials forimmediate accessTable of contentsPrefaceProject 1: Meet TkinterMission BriefingThe root window- your drawing board10Widgets- building blocks for your GUI program13Getting to know core Tkinter widgets16Geometry management19Events and callbacks -adding life to programs28Doing it in style36Mission AccomplishedA Hotshot Challenge4Project 2: Making a Text Editor like Notepad43Mission briefing3Setting up the widgetsLeveraging the power of built-in Text widget options51Indexing and tagging52Working with forms and dialogs59Working with message boxes64the icon toolbar and view menu functions67Event handling and the context menu74Mission Accomplished76A Hotshot Challenge
下载地址
用户评论