Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Title Page
Copyright
Contents
Preface
Authors’ Biography
1 Introduction of Python
1.1 Why Python
1.1.1 Drawbacks of Python
1.2 History of Python
1.3 Major features of Python
1.3.1 What is new in upcoming Python 3.8
1.4 Market demand
1.5 Why Python in mobile app development?
1.6 Python versions
1.7 Architecture of python application
1.8 System requirement
1.9 Installation of python in various platform
Installation in windows
Installation in Linux
Installation in Mac
1.10 Creating First Hello World app
1.10.1 Basic operations in python prompt
1.11 Anatomy of Python program
1.12 IDLE
1.13 User input
1.14 Installing external modules using pip
Summary
Key terms
Review questions
Exercise
Answers
Fill in the blanks
Answers
2 Python basics
2.1 Variables
2.2 Data types
2.2.1 Booleans
2.2.2 Integer
2.2.3 Float
2.2.4 String
2.2.5 None
2.3 Block indentation
2.4 Math calculations
2.5 Operators
2.6 String operations
2.7 Indexing
2.8 Slicing
2.9 Concatenation
2.10 Single-line and multiline comments
2.11 Functions
2.11.1 Built-in functions
2.11.2 User-defined functions
2.11.3 Function with argument
2.11.4 Flow of execution
2.11.5 Default values
2.12 Return value
2.13 Type-casting
2.14 Disassembler
2.15 Lambda keyword
Summary
Key terms
Review questions
Exercise
Answers
Fill in the blanks
Answers
3 Conditions and loops
3.1 If and else and conditional statements
3.1.1 Nested if–else
3.2 Loops
3.2.1 For loop
3.2.2 While loop
3.3 Break and continue statement
3.4 Collections
3.4.1 Tuples
3.4.2 Lists
3.4.3 Sets
3.4.4 Frozen sets
3.4.5 Byte
3.4.6 Byte array
3.4.7 String
3.4.8 Dictionaries
3.4.9 Arrays
3.5 Date and time
Summary
Key terms
Review questions
Exercise
Answers
Fill in the blanks
Answers
4 Object-oriented programming (OOP)
4.1 Object-oriented programming (OOP)
4.2 Class
4.3 Object
4.4 Functions
4.5 Abstraction
4.5.1 Abstract class
4.5.2 Interface
4.6 Polymorphism
4.6.1 Overloading
4.6.2 Overriding
4.7 Encapsulation
4.8 Inheritance
4.9 Access modifier/specifier
4.10 Decorator
4.10.1 @classmethod decorator
4.10.2 @staticmethod decorator
Summary
Key terms
Review questions
Exercise
Answers
Fill in the blanks
Answers
5 Standard libraries
5.1 File operations using native
5.1.1 Writing file
5.2 OS module
5.3 Exception handling
5.3.1 User-defined exceptions
5.4 Import standard Python modules and packages
5.4.1 Creating a module
5.4.2 Packages
5.5 Regular expression
5.6 Math module
5.6.1 Writing documentation for module
5.7 JSON
5.8 SQLite3
5.9 SQLAlchemy
Summary
Key terms
Review questions
Exercise
Answers
Fill in the blanks
Answers
6 Getting started with Kivy
6.1 Why cross-platform?
6.2 What is Kivy
6.3 Why Python in mobile app
6.4 Kivy architecture
6.5 Python developed mobile apps
6.6 History of Kivy
6.7 Why not Cordova
6.8 Kivy versions
6.9 How it is different from the cross-platform app framework
6.10 System requirement
6.11 Installation of Kivy
6.11.1 Installation in Windows?
6.11.2 Installation in Mac OS?
6.11.3 Installation in Linux?
6.11.4 What are Wheels and pip?
6.11.5 Cython installation in Linux?
6.11.6 Verifying installation
6.12 Creating the First Hello World App
6.12.1 Event handling in Kivy
6.12.2 Event dispatcher
6.12.3 Main loop
6.12.4 Custom events
6.13 Anatomy of Kivy
6.13.1 Running Kivy application
6.13.2 Listing and uninstalling Kivy
Summary
Key terms
Review questions
Exercise
Answers
Fill in the blanks
Answers
7 Kivy basics
7.1 Configuring environment
7.2 Configure Kivy and how to import Kivy library
7.3 First app
7.3.1 Widgets
7.3.2 Custom widgets
7.4 Orientation horizontal and vertical
7.4.1 size-hint, pos_hint
7.4.2 pos_hint
7.4.3 FileChooser
7.5 super, padding, __init__, add_widget
7.5.1 Super
7.5.2 __init__
7.5.3 add_widget
Summary
Key terms
Review questions
Exercise
Answers
Fill in the blanks
Answers
8 Layouts
8.1 What is the layout
8.2 Box layout
8.3 Float layout
8.4 Anchor layout
8.5 Grid layout
8.6 Relative layout
8.7 Stack layout
8.8 Page layout
Summary
Key terms
Review questions
Exercise
Answers
Fill in the blanks
Answers
9 Designing user interfaces
9.1 What is UI (user interface) components
9.2 Buttons
9.3 Labels
9.4 ListView
9.4.1 RecyclerView
9.5 Image
9.6 Events and properties
9.7 Fonts and their properties
9.8 Popup menu
9.9 TextInput
9.10 ScrollView
9.11 Kivy clock
Summary
Key terms
Review questions
Exercise
Answers
Fill in the blanks
Answers
10 UX widgets
10.1 ActionBar and slider
10.2 Checkbox and text on window
10.2.1 Toggle button
10.2.2 TreeView
10.3 Radio/checkbox button and label management
10.4 ProgressBar and carousel
Kivy clock
10.4.1 Custom ProgressBar
10.4.2 Carousel layout
10.4.3 Scatter
10.5 Canvas
10.6 AsyncImage
10.7 Spinner
10.8 Accordion
10.9 Switching between two screens
Summary
Key terms
Review questions
Exercise
Answers
Fill in the blanks
Answers
11 Graphics handling
11.1 Graphics
11.2 Interacting with another framework
11.3 Modules
11.4 Network support
11.5 Storage tool
11.6 Rotate clock and rotate speed
11.7 Triggered events
11.8 Animations
11.9 Audio
11.10 Video
Annotation
Summary
Key terms
Review questions
Exercise
Answers
Fill in the blanks
Answers
12 Packaging app for various platforms
12.1 Adding behavior with mixin class
12.1.1 Packaging application
12.1.2 Testing application with android device
12.1.3 Packaging for android
12.1.4 Plyer
12.2 Building an android APK on OS X
12.3 Package licensing
12.4 Packaging application using Kivy launcher
12.5 External libraries
12.6 Python application testing
12.7 Release on the market
12.8 Kivy application testing
Summary
Key terms
Review questions
Exercise
Answers
Fill in the blanks
Answers
13 Sample project
13.1 Introduction of git
13.2 Implementation of git
13.3 Sample project 1
Sample project 2
13.4 Kivy catalog
13.5 Creating my own screen
13.6 Project game
Bibliography
Index
← Prev
Back
Next →
← Prev
Back
Next →