Kivy blueprints : build your very own app-store-ready, multi-touch games and applications with Kivy! /


Mark Vasilkov.
Bok Engelsk 2015 · Electronic books.
Omfang
1 online resource (282 p.)
Utgave
1st edition
Opplysninger
Includes index.. - Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Building a Clock App; The starting point; Modern UI; Design inspiration; Loading custom fonts; Formatting text; Changing the background color; Making the clock tick; Updating the time on the screen; Binding widgets using properties; Layout basics; Finalizing the layout; Reducing repetition; Named classes; Styling buttons; 9-patch scaling; Using 9-patch images; Counting time; Formatting the time for stopwatch; Computing values; Putting a stopwatch in place. - Chapter 3: Sound Recorder for AndroidWriting platform-dependent code; Introducing Pyjnius; Emulating Android; Metro UI; The buttons; The grid structure; Visual attributes; Scalable vector icons; Icon fonts; Rationale for using icon fonts; Using the icon font in Kivy; Testing on Android; Using the native API; Loading Java classes; Looking up the storage path; Reading logs from the device; Recording sound; Major caveat - permissions; Playing sound; Deleting files; Summary; Chapter 4: Kivy Networking; Writing the chat server; The protocol definition; The server source code. - JavaScript clientEndless loop of screenshots; Passing clicks to host; Kivy Remote Desktop app; The login form; The remote desktop screen; Loop of screenshots in Kivy; Sending clicks; What's next; Summary; Chapter 6: Making the 2048 Game; About the game; Gameplay concepts and overview; Randomness, or lack thereof; The 2048 project outline; What makes 2048 a good choice of project?; Simplicity as a feature; Creating the 2048 board; Going through cells; Rendering empty cells; Board data structure; Variable naming; Calling reset; Testing passability; Making tiles; Tile initialization. - Resizing tiles. - Stopwatch controlsSummary; Chapter 2: Building a Paint App; Setting the stage; Fine-tuning the looks; Visual appearance; Window size; Mouse cursor; Multitouch emulation; Drawing touches; A very short introduction to the canvas; Displaying touches on the screen; Clearing the screen; Passing events; Clearing the canvas; Connecting the dots; The color palette; Subclassing the buttons; Taking away the ability to deselect; Overriding the standard behavior; Coloring buttons; A new kind of button; Defining the palette; Setting line thickness; Changing the line width; Summary. - The principle of operationTesting the server; Screen manager; Customizing the animation; Login screen layout; Chatroom screen layout; Overscroll modes; Bringing the app online; Building a simple Python client; Kivy integration with Twisted; ChatClient and ChatClientFactory; UI integration; Application logic of the client; Cross-application interoperability; Enhancements and eye candy; Escaping the special syntax; What's next; Summary; Chapter 5: Making a Remote Desktop App; The server; The Flask web server; Advanced server functionality - taking screenshots; Emulating clicks. - This book is intended for programmers who are comfortable with the Python language and who want to build desktop and mobile applications with rich GUI in Python with minimal hassle. Knowledge of Kivy is not strictly required-every aspect of the framework is described when it's first used.
Emner
Sjanger
Dewey
ISBN
1-78398-785-5

Bibliotek som har denne