2022年9月26日
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u 阅读全文
posted @ 2022-09-26 14:28 Lionever 阅读(43) 评论(0) 推荐(0)
  2022年9月25日
摘要: 安装2015是显示安装包丢失或损坏, 一般是java****。 1、删除packages后边的路径然后点重试, 多试几次 就可以了。 阅读全文
posted @ 2022-09-25 15:47 Lionever 阅读(132) 评论(0) 推荐(0)
  2022年6月23日
摘要: 1、 self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar)self.actional1 = QAction(MainWindow) # 声明actionself.actional1.setT 阅读全文
posted @ 2022-06-23 16:31 Lionever 阅读(1108) 评论(0) 推荐(0)
摘要: 一、 链接数据库呈现查询结果 def cdb(self): dbconn = sqlite3.connect('./db/database.db') # 链接数据库 cursor = dbconn.cursor() #设置游标 sqlstr ='select * from people' curso 阅读全文
posted @ 2022-06-23 16:27 Lionever 阅读(1180) 评论(0) 推荐(0)
  2022年5月12日
摘要: '''显示二维表数据数据源medelMVC model(数据源) view(展示视图) contrller 控制层需要创建Qtableview 实例 和数据源model 然后将两者关联'''import sysfrom PyQt5.QtWidgets import *from PyQt5.QtGui 阅读全文
posted @ 2022-05-12 13:28 Lionever 阅读(386) 评论(0) 推荐(0)
  2022年5月8日
摘要: 方法一: from PyQt5.QtWidgets import * import sys class Main(QMainWindow): def __init__(self): super().__init__() self.setWindowTitle("主窗口") button = QPus 阅读全文
posted @ 2022-05-08 20:57 Lionever 阅读(798) 评论(0) 推荐(0)
摘要: 多窗口传递数据 不使用信号及槽 D116.PY import sysfrom PyQt5.QtCore import *from PyQt5.QtGui import *from PyQt5.QtWidgets import *from D11602 import Datedialogclass m 阅读全文
posted @ 2022-05-08 11:00 Lionever 阅读(242) 评论(0) 推荐(0)
  2022年4月23日
摘要: 1、 自定义信号与槽 import sysfrom PyQt5.QtWidgets import *class ssdemo(QWidget): def __init__(self): super(ssdemo, self).__init__() self.initUI() #槽函数 def on_ 阅读全文
posted @ 2022-04-23 11:48 Lionever 阅读(315) 评论(0) 推荐(0)
  2022年4月22日
摘要: import sysfrom PyQt5.QtWidgets import *def on_click(): print("ok1") print("widget.x()=%d" %widget.x()) #250 窗口横坐标 print("widget.y()=%d" %widget.y()) # 阅读全文
posted @ 2022-04-22 21:15 Lionever 阅读(83) 评论(0) 推荐(0)
  2022年4月21日
摘要: import sys#带入系统from PyQt5.QtWidgets import *class quitapp(QMainWindow): def __init__(self,parent=None): super(quitapp,self).__init__(parent) #初始化 self 阅读全文
posted @ 2022-04-21 19:49 Lionever 阅读(165) 评论(0) 推荐(0)