Ai
1 Star 0 Fork 0

popyeah/VisualizeGUI

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
universal_plot_GUI.py 939 Bytes
一键复制 编辑 原始数据 按行查看 历史
Nathan Lam 提交于 2019-02-02 10:18 +08:00 . Universal plot widget
from PyQt4 import QtCore, QtGui
from widgets import UniversalPlotWidget
import sys
if __name__ == '__main__':
# Create main application window
app = QtGui.QApplication([])
app.setStyle(QtGui.QStyleFactory.create("Cleanlooks"))
mw = QtGui.QMainWindow()
mw.setWindowTitle('Universal Plot GUI')
# Initialize status_bar
status_bar = QtGui.QStatusBar()
mw.setStatusBar(status_bar)
status_bar.setSizeGripEnabled(False)
# Create universal plot widget
universal_plot_widget = UniversalPlotWidget()
# Create and set widget layout
# Main widget container
cw = QtGui.QWidget()
ml = QtGui.QGridLayout()
cw.setLayout(ml)
mw.setCentralWidget(cw)
ml.addLayout(universal_plot_widget.get_universal_plot_layout(),0,0)
mw.statusBar()
mw.show()
if(sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
QtGui.QApplication.instance().exec_()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/popyeah/VisualizeGUI.git
git@gitee.com:popyeah/VisualizeGUI.git
popyeah
VisualizeGUI
VisualizeGUI
master

搜索帮助