Tkinter-Gui-Programming-By-Example-Packt

所属分类:Python编程
开发工具:Python
文件大小:850KB
下载次数:0
上传日期:2022-12-08 00:51:33
上 传 者sh-1993
说明:  Tkinter Gui编程示例包,,
(Tkinter-Gui-Programming-By-Example-Packt,,)

文件列表:
Ch1.zip (3200, 2019-10-21)
Ch1 (0, 2019-10-21)
Ch1\ch1-1.py (342, 2019-10-21)
Ch1\ch1-2.py (887, 2019-10-21)
Ch1\ch1-3.py (965, 2019-10-21)
Ch1\ch1-4.py (1068, 2019-10-21)
Ch1\ch1-5.py (1195, 2019-10-21)
Ch1\ch1-6.py (1498, 2019-10-21)
Ch10 (0, 2019-10-21)
Ch10\addfriendwindow.py (1097, 2019-10-21)
Ch10\avatarwindow.py (1667, 2019-10-21)
Ch10\chatwindow.py (5585, 2019-10-21)
Ch10\demo (0, 2019-10-21)
Ch10\demo\demo-thread.py (736, 2019-10-21)
Ch10\demo\demo.py (588, 2019-10-21)
Ch10\demo\req.py (135, 2019-10-21)
Ch10\friendslist.py (6927, 2019-10-21)
Ch10\images (0, 2019-10-21)
Ch10\images\default.png (2757, 2019-10-21)
Ch10\listeningthread.py (853, 2019-10-21)
Ch10\requester.py (3335, 2019-10-21)
Ch10\server (0, 2019-10-21)
Ch10\server\conversation.py (1461, 2019-10-21)
Ch10\server\create_database.py (223, 2019-10-21)
Ch10\server\database.py (2959, 2019-10-21)
Ch10\server\requirements.txt (227, 2019-10-21)
Ch10\server\server.py (4760, 2019-10-21)
Ch10\smilies (0, 2019-10-21)
Ch10\smilies\mikulka-smile-cool.png (365, 2019-10-21)
Ch10\smilies\mikulka-smile-grin.png (378, 2019-10-21)
Ch10\smilies\mikulka-smile-license.txt (1606, 2019-10-21)
Ch10\smilies\mikulka-smile-overview.png.ignore (537, 2019-10-21)
Ch10\smilies\mikulka-smile-razz.png (373, 2019-10-21)
Ch10\smilies\mikulka-smile-sad.png (365, 2019-10-21)
Ch10\smilies\mikulka-smile-smile.png (363, 2019-10-21)
Ch10\smilies\mikulka-smile-source.xcf (3185, 2019-10-21)
Ch10\smilies\mikulka-smile-surprised.png (365, 2019-10-21)
Ch10\smilies\mikulka-smile-wink.png (364, 2019-10-21)
... ...

This is the assets folder for chapters 3 and 4. To obtain the assets used by the book's author, download the images from this URL: https://opengameart.org/sites/default/files/Free-Game-Assets-08-Playing-Cards.zip Inside are three sets of cards. Choose which set you like more. Screenshots from the book are using "Modern". Copy the cards from this folder back into your "assets" folder. Now the images need to be resized and renamed. This can be done from a command line using a program named "ImageMagick". http://www.imagemagick.org/script/index.php This python script should do it for you: ```python import os no = ["tabletop.png", "resize.py", "README.md", "sounds"] filename_map = { "h": "Hearts", "d": "Diamonds", "c": "Clubs", "s": "Spades", } value_map = { 1: "A", 11: "J", 12: "Q", 13: "K", } images = os.listdir() for i in images: if i.startswith('.'): continue if i not in no: value = int(i[1:-4]) if value == 1 or value > 10: value = value_map[value] filename = filename_map[i[0:1]] + str(value) + ".png" os.system(f"convert {i} -resize 80x111\> {filename}") ``` This script can be found in this folder, named `resize.py`.

近期下载者

相关文件


收藏者