[Python] How to use setattr() function and getattr() function
In Python, setattr()
and getatter()
are functions that often used together.
In Python, setattr()
and getatter()
are functions that often used together.
Recently, when developing project that I am interested in, there is a demand for “click on the picture and get the pixel value”. I thought this kind of demand was common, but I couldn’t find any sample on the Internet. (Maybe the keywords I’m query are wrong.)
Read More »[PyQt5] click on the picture and get the pixel value of clicked positionMobile phones occupy a pivotal position in people’s lives nowadays. Whether it’s social networking, entertainment, new knowledge, etc., we all rely on the information given to us by mobile devices. In an era when everyone is “self-media”, we will also use mobile devices, or even more The ethereal “Internet” is used to socialize and spread our ideas.
Read More »Note of the development history of Mobile Device and 5GIn the process of designing the interface, we may need to set up a “scrollable” area in the interface so that we can maximize the display of the information we want to display in the limited layout.
Read More »[PyQt5] How to use the QScrollArea component to make a scrolling pageWhen we are developing the front-end interface, if we want to display a picture on the interface, in addition to open the directory for user to choose file, I think drag a picture to the QLabel component and display is a great way.
Read More »[PyQt5] Drag the picture onto the QLabel component and display the pictureWhen we use PyQt5 to develop a graphical interface, maybe sometimes we need to save the image of QLabel component. Of course, if we proactively show a picture on QLabel, we don’t need to worry about this problem. OF COURSE WE ALREADY HAVE THAT DREAM PICTURE.
Read More »[PyQt5] How to save text or images in QLabel component as picturesI always want to try to use PyQt5 in Python to make a simple handwriting/drawing board, which can write and draw on the interface we develop at will.
Read More »[PyQt5] Make a simple drawing board through the programThere are many useful instructions for processing values in SQL. Today I will introduce the following instructions:
Read More »[MySQL] Note(5) Number Instructions: ABS, CEIL, FLOOR, MOD, POWER, SIGN, TRUNCATE, SQRTThere are usually several tables in a database, and there are many data stored. In addition to query the data, if we are the database administrator, we also need to know how to “add“, “modify“, “delete” the table and the fields and data in the table.
Read More »[MySQL] Note(4) How to add, modify, delete TableI briefly mentioned that the WHERE
instruction can be used as an IF conditional judgment. Today, I will continue to record how to use WHERE
.