本文整理汇总了Python中shipUtils.Paths.modulePath方法的典型用法代码示例。如果您正苦于以下问题:Python Paths.modulePath方法的具体用法?Python Paths.modulePath怎么用?Python Paths.modulePath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类shipUtils.Paths
的用法示例。
在下文中一共展示了Paths.modulePath方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from shipUtils import Paths [as 别名]
# 或者: from shipUtils.Paths import modulePath [as 别名]
def __init__(self):
self.ui = Paths.modulePath() + "/shipOutlineDraw/TaskPanel.ui"
self.ship = None
self.skip = False
self.LSections = []
self.BSections = []
self.TSections = []
self.obj = None
self.preview = Preview.Preview()
示例2: accept
# 需要导入模块: from shipUtils import Paths [as 别名]
# 或者: from shipUtils.Paths import modulePath [as 别名]
def accept(self):
path = Paths.modulePath() + "/Examples/"
if(self.form.ship.currentIndex() == 0): # s60 from Iowa University
App.open(path + "s60.fcstd")
elif(self.form.ship.currentIndex() == 1): # Barehull 5415
App.open(path + "barehull5415.fcstd")
elif(self.form.ship.currentIndex() == 2): # s60 (Katamaran)
App.open(path + "s60_katamaran.fcstd")
return True
示例3: accept
# 需要导入模块: from shipUtils import Paths [as 别名]
# 或者: from shipUtils.Paths import modulePath [as 别名]
def accept(self):
path = Paths.modulePath() + "/Resources/VENDING/"
if(self.form.ship.currentIndex() == 0): # box2
App.open(path + "box2.fcstd")
elif(self.form.ship.currentIndex() == 1): # CircleFan
App.open(path + "CircleFan.fcstd")
elif(self.form.ship.currentIndex() == 2): # Part 1
App.open(path + "Part1.fcstd")
elif(self.form.ship.currentIndex() == 2): # Part 4
App.open(path + "Part4.fcstd")
return True
示例4: accept
# 需要导入模块: from shipUtils import Paths [as 别名]
# 或者: from shipUtils.Paths import modulePath [as 别名]
def accept(self):
path = Paths.modulePath() + "/Examples/"
if(self.form.ship.currentIndex() == 0): # s60 from Iowa University
App.open(path + "s60.fcstd")
elif(self.form.ship.currentIndex() == 1): # Wigley canonical ship
App.open(path + "wigley.fcstd")
elif(self.form.ship.currentIndex() == 2): # s60 (Katamaran)
App.open(path + "s60_katamaran.fcstd")
elif(self.form.ship.currentIndex() == 2): # Wigley (Katamaran)
App.open(path + "wigley_katamaran.fcstd")
return True
示例5: accept
# 需要导入模块: from shipUtils import Paths [as 别名]
# 或者: from shipUtils.Paths import modulePath [as 别名]
def accept(self):
"""Load the selected hull example."""
path = Paths.modulePath() + "/resources/examples/"
mw = self.getMainWindow()
form = mw.findChild(QtGui.QWidget, "TaskPanel")
form.ship = self.widget(QtGui.QComboBox, "Ship")
if(form.ship.currentIndex() == 0): # s60 from Iowa University
App.open(path + "s60.fcstd")
elif(form.ship.currentIndex() == 1): # Wigley canonical ship
App.open(path + "wigley.fcstd")
elif(form.ship.currentIndex() == 2): # s60 (Katamaran)
App.open(path + "s60_katamaran.fcstd")
elif(form.ship.currentIndex() == 2): # Wigley (Katamaran)
App.open(path + "wigley_katamaran.fcstd")
return True
示例6: __init__
# 需要导入模块: from shipUtils import Paths [as 别名]
# 或者: from shipUtils.Paths import modulePath [as 别名]
def __init__(self):
self.ui = Paths.modulePath() + "/tankWeights/TaskPanel.ui"
self.ship = None
self.preview = Preview.Preview()
示例7: __init__
# 需要导入模块: from shipUtils import Paths [as 别名]
# 或者: from shipUtils.Paths import modulePath [as 别名]
def __init__(self):
self.ui = Paths.modulePath() + "/simCreate/TaskPanel.ui"
示例8: path
# 需要导入模块: from shipUtils import Paths [as 别名]
# 或者: from shipUtils.Paths import modulePath [as 别名]
def path():
""" Gets the OpenCL kernels path
@return OpenCL kernels path
"""
path = Paths.modulePath() + "/resources/opencl"
return path
示例9: __init__
# 需要导入模块: from shipUtils import Paths [as 别名]
# 或者: from shipUtils.Paths import modulePath [as 别名]
def __init__(self):
"""Constructor"""
self.ui = Paths.modulePath() + "/shipCreateWeight/TaskPanel.ui"
示例10: __init__
# 需要导入模块: from shipUtils import Paths [as 别名]
# 或者: from shipUtils.Paths import modulePath [as 别名]
def __init__(self):
self.ui = Paths.modulePath() + "/shipCapacityCurve/TaskPanel.ui"
self.tank = None
示例11: clPath
# 需要导入模块: from shipUtils import Paths [as 别名]
# 或者: from shipUtils.Paths import modulePath [as 别名]
def clPath():
""" Gets the OpenCL kernels path
@return OpenCL kernels path
"""
path = Paths.modulePath() + "/OpenCL"
return path
示例12: __init__
# 需要导入模块: from shipUtils import Paths [as 别名]
# 或者: from shipUtils.Paths import modulePath [as 别名]
def __init__(self):
self.ui = Paths.modulePath() + "/simPost/TaskPanel.ui"
示例13: __init__
# 需要导入模块: from shipUtils import Paths [as 别名]
# 或者: from shipUtils.Paths import modulePath [as 别名]
def __init__(self):
self.ui = Paths.modulePath() + "/simRun/TaskPanel.ui"
self.sim = False
示例14: __init__
# 需要导入模块: from shipUtils import Paths [as 别名]
# 或者: from shipUtils.Paths import modulePath [as 别名]
def __init__(self):
self.ui = Paths.modulePath() + "NR_TEST/Gui/Vend/TaskPanel.ui"