Kivy blueprints

Vasilkov, Mark,

Kivy blueprints - Birmingham, UK Packt Publishing 2015 - 261 pages 30 cm - Community experience distilled .

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 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 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 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 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.

9781783987849


Python (Computer program language)
Cross-platform software development
Application software--Development

005.25 VAS