- 积分
- 0
- 注册时间
- 2015-3-10
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2015-5-17 23:06:43
|
显示全部楼层
来自 山东淄博
from abaqusConstants import *
from abaqusGui import *
from kernelAccess import mdb, session
import os
thisPath = os.path.abspath(__file__)
thisDir = os.path.dirname(thisPath)
###########################################################################
# Class definition
###########################################################################
class LineDB(AFXDataDialog):
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def __init__(self, form):
# Construct the base class.
#
AFXDataDialog.__init__(self, form, 'Title',
self.OK|self.CANCEL, DIALOG_ACTIONS_SEPARATOR)
okBtn = self.getActionButton(self.ID_CLICKED_OK)
okBtn.setText('OK')
spinner = AFXSpinner(self, 6, 'number', form.numberKw, 0)
spinner.setRange(1, 10)
spinner.setIncrement(1)
AFXTextField(p=self, ncols=12, labelText='x1:', tgt=form.x1Kw, sel=0)
AFXTextField(p=self, ncols=12, labelText='x2:', tgt=form.x2Kw, sel=0)
AFXTextField(p=self, ncols=12, labelText='x3:', tgt=form.x3Kw, sel=0)
AFXTextField(p=self, ncols=12, labelText='x4:', tgt=form.x4Kw, sel=0)
AFXTextField(p=self, ncols=12, labelText='L:', tgt=form.lengthKw, sel=0)
AFXTextField(p=self, ncols=12, labelText='R:', tgt=form.radiusKw, sel=0)
类似于这种程序,直接在abaqusPDE里面调试,还是用IDLE(PythonGUI)?直接用print就能跳出编写的界面吗? |
|