当前位置: 首页>>代码示例>>Python>>正文


Python Paths.modulePath方法代码示例

本文整理汇总了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()
开发者ID:Koelie2,项目名称:freecad,代码行数:11,代码来源:TaskPanel.py

示例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
开发者ID:Koelie2,项目名称:freecad,代码行数:11,代码来源:TaskPanel.py

示例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
开发者ID:NeuronRobotics,项目名称:BowlerFreeCad,代码行数:13,代码来源:TaskPanel.py

示例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
开发者ID:RoyOnWheels,项目名称:FreeCAD,代码行数:13,代码来源:TaskPanel.py

示例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
开发者ID:Barleyman,项目名称:FreeCAD_sf_master,代码行数:17,代码来源:TaskPanel.py

示例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()
开发者ID:archri,项目名称:freecad,代码行数:6,代码来源:TaskPanel.py

示例7: __init__

# 需要导入模块: from shipUtils import Paths [as 别名]
# 或者: from shipUtils.Paths import modulePath [as 别名]
 def __init__(self):
     self.ui = Paths.modulePath() + "/simCreate/TaskPanel.ui"
开发者ID:RoyOnWheels,项目名称:FreeCAD,代码行数:4,代码来源:TaskPanel.py

示例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
开发者ID:MarcusWolschon,项目名称:FreeCAD_sf_master,代码行数:8,代码来源:clUtils.py

示例9: __init__

# 需要导入模块: from shipUtils import Paths [as 别名]
# 或者: from shipUtils.Paths import modulePath [as 别名]
 def __init__(self):
     """Constructor"""
     self.ui = Paths.modulePath() + "/shipCreateWeight/TaskPanel.ui"
开发者ID:DanielDTR,项目名称:FreeCAD_sf_master,代码行数:5,代码来源:TaskPanel.py

示例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
开发者ID:3DPrinterGuy,项目名称:FreeCAD,代码行数:5,代码来源:TaskPanel.py

示例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
开发者ID:Barleyman,项目名称:FreeCAD_sf_master,代码行数:8,代码来源:Utils.py

示例12: __init__

# 需要导入模块: from shipUtils import Paths [as 别名]
# 或者: from shipUtils.Paths import modulePath [as 别名]
 def __init__(self):
     self.ui  = Paths.modulePath() + "/simPost/TaskPanel.ui"
开发者ID:c-lutaud,项目名称:FreeCAD_sf_master,代码行数:4,代码来源:TaskPanel.py

示例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
开发者ID:MarcusWolschon,项目名称:FreeCAD_sf_master,代码行数:5,代码来源:TaskPanel.py

示例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"
开发者ID:NeuronRobotics,项目名称:BowlerFreeCad,代码行数:4,代码来源:TaskPanel.py


注:本文中的shipUtils.Paths.modulePath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。