Relationship between font size and part size in Tkinter
I'm Xiaoyu. Today is February 10, 2022.
When I used python to play minesweeping games before, I found that I was always uncertain about the relationship between part size and font. Therefore, I specially wrote a BLOG about the size of labels and buttons in Tkinter at that time. After minesweeping, I had time to look back and find that many of ...
Added by shmick25 on Thu, 10 Feb 2022 17:18:17 +0200
Python is packaged as exe -- pyinstaller
brief introduction
Package Python programs as executable files exe
have access to pyinstaller , you can also use Nuitka
This article mainly introduces the use of Windows pyinstaller
install
To avoid packing files that are too large, use the virtual environment control package
Install virtual environment management pack under Window ...
Added by berry05 on Sat, 29 Jan 2022 04:31:06 +0200
Python confession Code: "mountains and rivers are far away, and all fireworks in the world are you, and all are you" (attached source code)
Above
hello everyone! I am 🍑 classmate!
I hope you can support me! ha-ha
Peach, in order to thank everyone who pays attention to me: 💓 The project source code of each article is shared free of charge 💓 See the end of the text!
Many csdn function peaches are still under research, and it's no wonder that the writing of peaches is not ...
Added by pachanga1 on Wed, 05 Jan 2022 07:41:05 +0200
GUI programming in Python
Common GUI tools
Tkinter:Python's standard GUI LibrarywxPython: it is more powerful than Tkiner and can cross platformPyqtPyObject et al
Wxpyron installation
pip install wxPython
Three steps to establish python GUI program
1. Import wxPython packages or other packages
2. Establish framework
3. Establish main program
The frame canno ...
Added by havenpets on Mon, 27 Dec 2021 10:09:39 +0200
The tkinter layout positioning method is explained with an example of place. Place is mixed with grid and pack methods
x,y parameters of place method
place() layout positioning method allows programmers to accurately specify the location and size of components. At first glance, it seems good, but in practice, it is not easy. We can accurately know the coordinates of other positions except x = 0 and y = 0 in the upper left corner of the screen. As for the compo ...
Added by phpcharan on Tue, 23 Nov 2021 09:54:45 +0200