Skip to content

Python

[PyQt5] Tutorial(2) QLabel, QLineEdit, QPushButton

Today, I want to note my experience of QLabel, QLineEdit, QPushButton in PyQt5. By the way, I design my own graphic user interface by Qt Designer.

Maybe one day I will change my way, use the code to create interface instead (After all, the components in Qt Designer are actually not complete, of course, maybe I just didn't find it.), but I hope to learn at least until that day.

Read More »[PyQt5] Tutorial(2) QLabel, QLineEdit, QPushButton

[PyQt5] Tutorial(1) Install PyQt5 and print "Hello World!"

Will you want to create a pretty graphic user interface (GUI), maybe you first to think of, is the development framework of Tkinter, PyGame, PyQt5...... and so on.

Of course they are all great! (I rely heavily on them XD)

I started using PyQt5 to develop program because that require a simple user interface. So I started to experiment PyQt5 tutorial, and put my notes I learned on the way, maybe I can easily read it in future XD.

Read More »[PyQt5] Tutorial(1) Install PyQt5 and print "Hello World!"

[Python] Use Program to solve Sudoku problem

Do you know a game it named "Sudoku"? It's a puzzle which is formed from numbers, I thick it's fans are everywhere. (Just like my mom.)

First, I quote the introduction of Wikipedia:

Sudoku (数独 sūdoku, digit-single) (/suːˈdoʊkuː//-ˈdɒk-//sə-/, originally called Number Place)[1] is a logic-based,[2][3] combinatorial[4] number-placement puzzle. The objective is to fill a 9×9 grid with digits so that each column, each row, and each of the nine 3×3 subgrids that compose the grid (also called "boxes", "blocks", or "regions") contain all of the digits from 1 to 9. The puzzle setter provides a partially completed grid, which for a well-posed puzzle has a single solution.

Wiki
Read More »[Python] Use Program to solve Sudoku problem
Exit mobile version