戳人痛处

导航

2022年3月16日 #

[Pyside6-Study] Chapter-3

摘要: 1.创建主窗口 在第一步,我们将会使用子类QMainWindow创建主窗口,QMainWindow的构造函数与QWidget类类似; PySide6.QtWidgets.QMainWindow([parent=None[,flags=0]]) 下面的代码展示如何创建最基础的主窗口程序; # Impo 阅读全文

posted @ 2022-03-16 11:00 戳人痛处 阅读(673) 评论(0) 推荐(0)

2022年3月15日 #

[记]tkinter基于LabelFrame继承的自定义组件与tkinter变量的传递

摘要: 参考:python - 继承最佳实践 : *args, **kwargs 或明确指定参数 - IT工具网 (coder.work) 前言:tkinter属性值的传递是使用可变参数*args和**kwargs进行传递和属性设置的,所以继承时需将这些可变参数进行继承: time:20220315 imp 阅读全文

posted @ 2022-03-15 14:45 戳人痛处 阅读(211) 评论(0) 推荐(0)

2022年3月9日 #

[Pyside6-Study] Chapter-2

摘要: 1.面对对象的设计原则 # Import required modules import sys import time from PySide6.QtWidgets import QApplication, QWidget class SampleWindow(QWidget): """ Our 阅读全文

posted @ 2022-03-09 10:42 戳人痛处 阅读(492) 评论(0) 推荐(0)

2022年3月7日 #

[Pyside6-Study] Chapter-1

摘要: 1.库安装 pip install pyside6 嗯,就是这么简单; 2.第一个GUI程序 # Import the necessary modules required # import sys from PySide6.QtCore import Qt from PySide6.QtWidge 阅读全文

posted @ 2022-03-07 16:42 戳人痛处 阅读(186) 评论(0) 推荐(0)

2022年2月9日 #

[记]pypi打包上传

摘要: 提示:Upload failed (403): Invalid or non-existent authentication information 参考解决方法 环境 python 3.8.10 第一步:编写setup.py文件用于打包: setup.py文件编写参考: Python 自定义模块的 阅读全文

posted @ 2022-02-09 10:48 戳人痛处 阅读(121) 评论(0) 推荐(0)

2022年2月7日 #

[记]JAVA学习01 ing

摘要: 在java中,每一行代码需要在class类中运行; 每个应用从main函数开始运行; 为了运行程序,main方法必须有以下特征; public static void main(String[ ] args) public:所有成员可以获取; static:有该关键字的方法可以在没有创建包含main 阅读全文

posted @ 2022-02-07 18:49 戳人痛处 阅读(60) 评论(0) 推荐(0)

2022年1月10日 #

[记]linux Qt的手动构建

摘要: 例1:简单的计算器 1.工程目录Calculator下的文件包含 CalculatorDialog.h、CalculatorDialog.cpp、main.cpp 2.各文件内容 CalculatorDialog.h #ifndef __CALCULLATORDIALOG_H #define __C 阅读全文

posted @ 2022-01-10 11:36 戳人痛处 阅读(114) 评论(0) 推荐(0)

2021年12月30日 #

Tkinter GUI多进程间通信与显示刷新【mutiprocessing、threading、psutil】

摘要: Tkinter作为一个纯GUI不具备类似Qt、MFC等框架的消息传递能力,只能通过Tkinter类对象对显示值进行更新; 开发GUI程序一定是避免不了多线程和多进程的开发,当需要对运行进程灵活控制如暂停和恢复,则需引入库psutil进行进程的挂起和恢复,至于多进程threading,根本不支持这些操 阅读全文

posted @ 2021-12-30 17:17 戳人痛处 阅读(2445) 评论(0) 推荐(0)

2021年12月20日 #

[记]mc开服

摘要: 1: [13:27:58 ERROR]: Failed to load properties from file: server.properties [13:27:58 WARN]: Failed to load eula.txt 2: [13:29:20 WARN]: To start the 阅读全文

posted @ 2021-12-20 13:52 戳人痛处 阅读(397) 评论(0) 推荐(0)

2021年12月16日 #

20211216必应搜索引擎访问不了

摘要: ping bing.com 发现有ip返回 于是在浏览器直接使用该地址访问网站; 噢~ ┗|`O′|┛ what's problem 阅读全文

posted @ 2021-12-16 19:24 戳人痛处 阅读(122) 评论(1) 推荐(0)