Local cover image
Local cover image

Kivy blueprints

By: Material type: TextTextSeries: Community experience distilledPublication details: Birmingham, UK Packt Publishing 2015Description: 261 pages 30 cmISBN:
  • 9781783987849
Subject(s): DDC classification:
  • 005.25 VAS
Summary: 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.
Tags from this library: No tags from this library for this title. Log in to add tags.
Star ratings
    Average rating: 0.0 (0 votes)
Holdings
Item type Current library Shelving location Call number Copy number Status Date due Barcode
Books Books CamTech Library STEM & Engineering 005.25 VAS (Browse shelf(Opens below)) C.1 Available CamTech 000167

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.

There are no comments on this title.

to post a comment.

Click on an image to view it in the image viewer

Local cover image