본문 바로가기

Qt5 Python GUI Programming Cookbook14

Understanding Layouts In this chapter, we will focus on the following topics: Using Horizontal Layout Using Vertical Layout Using Grid Layout Using Form Layout Understanding layouts As the name suggest, layouts are used for arranging widgets in the desired format. On arranging certain widgets in a layout, certain size and alignment constraints are applied to the widgets automatically. For example, on increasing the s.. 2023. 3. 1.
Running Python Scripts on Android and iOS In this chapter, you will learn to run Python scripts on Android devices as well as on iOS. You will learn about the following topics: Copying scripts from PC to Android devices Prompting for a username and displaying a welcome message Understanding different buttons in a Dialog box Performing single selection from a list Performing multiple selections from a list Displaying a Date Picker dialog.. 2023. 2. 28.
Using Google Maps In this chapter, you will learn to use Google Maps in Python applications and explore the different advantages provided by Google. You will learn to do the following tasks: Find out details of a location or landmark Get complete information from latitude and longitude values Find out the distance between a two locations Display a location on Google Maps Introduction The Google Maps API is a set .. 2023. 2. 28.
Implementing Animation In this chapter, you will learn how to apply motion to a given graphic image, hence implementing animation. Animations play a major role in explaining the practical workings of any machine, process, or system. In this chapter, we will be covering the following topics: Displaying a 2D graphical picture Making a ball move down on the click of a button Making a bouncing ball Making a ball animate a.. 2023. 2. 28.
Using Graphics In every application, graphics play a major role in making it more user-friendly. Graphics make concepts easier to understand. In this chapter, we will be covering the following topics: Displaying mouse coordinates Displaying coordinates where the mouse button is clicked and released Displaying a point where the mouse button is clicked Drawing a line between two mouse clicks Drawing lines of dif.. 2023. 2. 28.
Database Handling Database handling plays a major role in any application as data needs to be stored for future use. You need to store customer information, user information, product information, order information, and so on. In this chapter, you will learn every task that is related to database handling: Creating a database Creating a database table Inserting rows in the specified database table Displaying rows .. 2023. 2. 28.
Doing Asynchronous Programming in Python In this chapter, we will learn to use asynchronous programming in Python, which is how more than one task can be executed in parallel. We will be covering the following topics: Updating a progress bar using a thread Updating two progress bars using two threads Updating progress bars using threads bound with a locking mechanism Updating progress bars simultaneously using asynchronous operations M.. 2023. 2. 28.
Networking and Managing Large Documents In this chapter, we will learn how to use networking concepts and about how large documents can be viewed in chunks. We will cover the following topics: Creating a small browser Creating a server-side application Establishing client-server communication Creating a dockable and floatable sign-in form Multiple Document Interface Displaying information in sections using Tab Widget Creating a custom.. 2023. 2. 28.
Understanding Dialogs In this chapter, we will learn how to use the following types of dialog: The input dialog box Using the input dialog Using the color dialog Using the font dialog Using the file dialog Introduction Dialogs are required in all applications to get input from the user, and also to guide the user to enter the correct data. Interactive dialogs make the application quite user-friendly too. There are ba.. 2023. 2. 28.