随笔分类 -  pyqt5

摘要:# _*_coding:utf-8_*_ # author:leo # date: # email:alplf123@163.com from PyQt5.QtWidgets import QApplication, QMainWindow, QTextEdit, QWidget, QVBoxLayout, QFrame from PyQt5.Qt import QSize import sy... 阅读全文
posted @ 2018-04-20 23:24 我是外婆 阅读(5600) 评论(0) 推荐(0)
摘要:from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.Qt import * import sys class CustomToolBar(QToolBar): def __init__(self, parent=None): super(CustomToolBar, self).__... 阅读全文
posted @ 2018-03-29 14:40 我是外婆 阅读(837) 评论(0) 推荐(0)
摘要:class Example(QMainWindow): def __init__(self, parent=None): super(Example, self).__init__(parent=parent) self._initUI() def _initUI(self): self.toolBar = QToolBar()... 阅读全文
posted @ 2018-03-27 09:10 我是外婆 阅读(400) 评论(0) 推荐(0)
摘要:from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.Qt import * import sys, os, time, types class FileInfoTableWidget(QTableWidget): global_row_font =... 阅读全文
posted @ 2018-02-24 14:50 我是外婆 阅读(2145) 评论(0) 推荐(0)
摘要:# 效果图 阅读全文
posted @ 2018-02-07 18:29 我是外婆 阅读(575) 评论(0) 推荐(0)
摘要:from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * import sys class Example(QWidget): _startPos = None _endPos = None _isTracking = False def __init... 阅读全文
posted @ 2018-02-07 11:13 我是外婆 阅读(4321) 评论(1) 推荐(1)
摘要:from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from demo_6 import * import sys class ToolBar(QMainWindow): def __init__(self): super().__init__() ... 阅读全文
posted @ 2018-02-07 10:49 我是外婆 阅读(511) 评论(0) 推荐(0)
摘要:class PopMenu(QMenu): def __init__(self, parent=None): super().__init__(parent) self.item1 = self.addAction('item1') self.item1.setShortcut(Qt.CTRL | Qt.Key_Q) sel... 阅读全文
posted @ 2018-01-30 17:48 我是外婆 阅读(1478) 评论(0) 推荐(0)
摘要:from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtGui import * import sys class LineEditEx(QLineEdit): def __init__(self, parent=None): super().__init__(None, parent... 阅读全文
posted @ 2018-01-26 18:17 我是外婆 阅读(2527) 评论(0) 推荐(0)
摘要:from PyQt5.QtWidgets import * from PyQt5.QtGui import QStandardItemModel, QStandardItem from PyQt5.QtCore import QSize, QPoint, QRect, QModelIndex import sys class Example(QMainWindow): # 继承QMainWind... 阅读全文
posted @ 2018-01-22 18:27 我是外婆 阅读(7502) 评论(1) 推荐(0)