본문 바로가기

분류 전체보기408

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 Layouts 6 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.. 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.
Understanding OOP Concepts In this chapter, we will cover the following topics: Object-oriented programming Using classes in GUI Using single inheritance Using multilevel inheritance Using multiple inheritance Object-oriented programming Python supports object-oriented programming (OOP). OOP supports reusability; that is, code that was written earlier can be reused for making large applications, instead of starting from s.. 2023. 2. 28.
Working with Date and Time In this chapter, we will cover the following topics: Displaying LCD digits Displaying system clock time in LCD-like digits Displaying the data selected by the user from Calendar Widget Creating a hotel reservation form Displaying tabular data using Table Widget Displaying LCD digits Qt Designer enables us to display LCD-like digits of any size by making use of its LCD Number widget. The LCD Numb.. 2023. 2. 28.