当前位置:网站首页>Using pyqt to design gui in ABAQUS
Using pyqt to design gui in ABAQUS
2022-07-28 16:34:00 【CaeCoder】
List of articles
Environmental statement
- operating system :Window10
- Abaqus edition :Abaqus2017, Its python Version is 64 position python2.7.3
- PyQt edition :PyQt4
install PyQt
- Download the corresponding version of PyQt4 Erection sequence , Pay attention to WeChat public number
CAE Second development of software Lab, send out pyqt Get download address .
- function PyQt4 install exe, Select the installation directory as Abaqus2017 Installation directory win_64\tools\SMApy\python2.7, As shown below .
After installation , stay abaqus Of python New under directory PyQt4 Folder , as follows :
stay Abaqus Run in PyQt4 The design of the GUI
- To write PyQt4 Code .
Save the following code as pyqt4_test.py file .
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
from PyQt4 import QtGui,QtCore
class Center(QtGui.QWidget):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
self.setWindowTitle('center')
self.resize(250, 150)
# Resize
quit=QtGui.QPushButton('Close',self)
quit.setGeometry(10,10,60,35)
self.connect(quit,QtCore.SIGNAL('clicked()'),QtGui.qApp,QtCore.SLOT('quit()'))
self.center()
def center(self):
screen = QtGui.QDesktopWidget().screenGeometry()
# Get screen resolution
size = self.geometry()
# Get component size
self.move((screen.width()-size.width())/2, (screen.height()-size.height())/2)
def main():
app=0
app = QtGui.QApplication([])
qb = Center()
qb.show()
app.exec_()
if __name__ == "__main__":
main()
- open Abaqus CAE, menu File -> Run Script choice pyqt4_test.py, The operation effect is as follows .

PyQt4 explain
Just choose pyqt4 instead of pyqt5 Because of the present abaqus Of python Version are python2.x, and pyqt5 Most only support python3.x.
Search online for PyQt5 Only for Python3 Instead of aiming at Python2.7 Of , So temporarily choose PyQt4. About the abaqus Installation on PyQt5 Methods , Try again later .
Scan the QR code below to follow my wechat official account - CAE Second development of software Lab, See more great articles !

边栏推荐
- 学会使用MySQL的Explain执行计划,SQL性能调优从此不再困难
- LabVIEW Linx toolkit controls Arduino equipment (expansion-1)
- PHP gets the applet code, and the applet jumps with parameters
- Solve the width overflow of rich text pictures such as uniapp
- Stm32cube infrared remote control: input capture
- 自动打包压缩备份下载及删除 bat脚本命令
- “蔚来杯“2022牛客暑期多校训练营3 A.Ancestor LCA+暴力计数
- 百度编辑器ueditor,编辑内容过多时,工具栏不可见,不方便编辑或上传问题
- 排序1-插入排序与希尔排序
- Pop up layer prompt in the background
猜你喜欢

深入理解Istio流量管理的熔断配置

Sort 2 bubble sort and quick sort (recursive and non recursive explanation)
![[Multisim Simulation] LM339 zero crossing circuit simulation](/img/ca/f6dae5fd298c00570407c2bdfa5118.png)
[Multisim Simulation] LM339 zero crossing circuit simulation

Dynamic programming -- digital statistics DP

学会使用MySQL的Explain执行计划,SQL性能调优从此不再困难

Leetcode topic

Abaqus GUI界面解决中文乱码问题(插件中文乱码也适用)

ANSA二次开发 - 界面开发工具介绍

Why do most people who learn programming go to Shenzhen and Beijing?

A good start
随机推荐
HyperMesh自动保存(增强版)插件使用说明
深入理解Istio流量管理的熔断配置
The little red book of accelerating investment, "rush to medical treatment"?
KubeEdge发布云原生边缘计算威胁模型及安全防护技术白皮书
排序5-计数排序
Food safety | these two kinds of melons and fruits should be improved, especially for pregnant women with constipation
SCI scientific paper writing Growth Camp (full version)
QML signal and handler event system
一大早支付宝来短信说你中“奖”了?处理服务器挖矿病毒 - kthreaddi
About standard IO buffers
关于MIT6.828_HW9_barriers xv6 homework9的一些问题
小程序中的分页查询
Why do most people who learn programming go to Shenzhen and Beijing?
Implementation of skip table
遭MQ连连干翻后的醒悟!含恨码出这份MQ手册助力秋招之旅
LeetCode-学会复杂带随机指针链表的题(详解)
Qt学习之安装
Wechat official account to obtain material list
Use py to automatically generate weekly reports based on log records
Rosen's QT journey 102 listmodel