摘要: 1. 打开Pycharm点击左上角File,然后选择找到Settings点击进入-》搜索Appearance -》 选择Appearance-》Background Image 选择好自己要设置的图片点击ok即可 2.不需要图片背景可以自定义纯色护眼背景 。打开Pycharm点击左上角File,然后 阅读全文
posted @ 2022-10-31 22:53 默*为 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 如上图所示: 用插件background-cover ,再设置下图片路径即可,程序员专属的开发DIY界面随手可得 当然添加账号来同步,以后设置一次即可随时同步 阅读全文
posted @ 2022-10-31 21:40 默*为 阅读(153) 评论(0) 推荐(0) 编辑
摘要: QRadioButton:!hover { color:white; border-radius:10px; border:1px solid rgb(170, 170, 127); background-color: rgb(124, 225, 255); font: 11pt "黑体";} QR 阅读全文
posted @ 2022-02-19 16:39 默*为 阅读(72) 评论(0) 推荐(0) 编辑
摘要: class MySqlOdbc: def __init__(self): self.sqlhead = None # 当前数据链接句柄 self.mycursor = None # 当前游标 """ 关闭数据库 """ def close(self): if self.mycursor: self. 阅读全文
posted @ 2022-01-19 17:26 默*为 阅读(183) 评论(0) 推荐(0) 编辑
摘要: """"python 使用异常来中断/暂停线程h_thread 线程句柄stoptype 线程停止类型,返回1则正常中断了线程"""def doing(): ncout = 0 while 1: ncout += 1 print(ncout) time.sleep(0.1)def kill_thre 阅读全文
posted @ 2022-01-18 11:50 默*为 阅读(640) 评论(0) 推荐(0) 编辑
摘要: def msg_okbox(self, strinfo, isYesno=False): if isYesno: return win32api.MessageBox(None, strinfo, "提示", win32con.MB_YESNO) else: win32api.MessageBox( 阅读全文
posted @ 2022-01-11 18:50 默*为 阅读(433) 评论(0) 推荐(0) 编辑
摘要: import win32apiimport win32conclass AutoRun: """ itemname:要添加的项值名称 , path:要添加的exe路径绝对路径 """ def __init__(self, itemname="xx软件名称", path="d:\\xx软件.exe") 阅读全文
posted @ 2021-12-23 09:16 默*为 阅读(386) 评论(0) 推荐(0) 编辑
摘要: # python调用c/c++方法:一般先将c++代码转化为C类型dll(推荐使用静态dll,否则容易出现各种链接库问题;记得使用extern "C" _declspec(dllexport))# extern "C" _declspec(dllexport) int iadd(int a ,int 阅读全文
posted @ 2021-12-20 18:37 默*为 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: class Test(QtWidgets.QMainWindow, Ui_dlg): def closeEvent(self, e): #to do super().closeEvent(e) def __init__(self): super(Test, self).__init__() self 阅读全文
posted @ 2021-12-20 17:36 默*为 阅读(35) 评论(0) 推荐(0) 编辑
摘要: class MyThreadSound(threading.Thread): def __init__(self): super(MyThreadSound, self).__init__() self.isexit = False self.ispause = True self.pausetim 阅读全文
posted @ 2021-12-20 14:45 默*为 阅读(1338) 评论(0) 推荐(0) 编辑