3 Star 2 Fork 1

ela/eqspy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
run.py 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
ela 提交于 2015-07-09 18:57 . add undo adjust button
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
from PySide import QtGui
from eqspy import Ui_EQSignal as Ui_EQSignal
def EQUI():
# Avoiding errors in interactive mode (eg. IPython)
appinstance = QtGui.QApplication.instance()
if appinstance is None:
app = QtGui.QApplication(sys.argv)
else:
app = appinstance
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(10)
font.setWeight(50)
font.setBold(False)
app.setFont(font)
ue = Ui_EQSignal()
# ue.fileName = "data/CHICHI04-CHY039-N.at2"
# ue.eqs.readNGAFile(ue.fileName)
# ue.eqs.norm()
# ue.plotTH()
# ue.tabWidget.setCurrentIndex(0)
# ue.VDTH.setEnabled(True)
# ue.setDefaultValue()
# ue.calSPthenPlotSP()
return app, ue
def main():
# Avoiding errors in interactive mode (eg. IPython)
appinstance = QtGui.QApplication.instance()
if appinstance is None:
app = QtGui.QApplication(sys.argv)
else:
app = appinstance
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(10)
font.setWeight(50)
font.setBold(False)
app.setFont(font)
ue = Ui_EQSignal()
ue.fileName = "data/CHICHI04-CHY039-N.at2"
ue.eqs.readNGAFile(ue.fileName)
ue.eqs.norm()
ue.plotTH()
ue.tabWidget.setCurrentIndex(0)
ue.VDTH.setEnabled(True)
ue.setDefaultValue()
ue.calSPthenPlotSP()
ue.show()
sys.exit(app.exec_())
if __name__ == '__main__':
# main()
app, ue = EQUI()
ue.show()
app.exec_()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/ela/eqspy.git
git@gitee.com:ela/eqspy.git
ela
eqspy
eqspy
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385