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


Python TestQgsPalLabeling.tearDownClass方法代码示例

本文整理汇总了Python中test_qgspallabeling_base.TestQgsPalLabeling.tearDownClass方法的典型用法代码示例。如果您正苦于以下问题:Python TestQgsPalLabeling.tearDownClass方法的具体用法?Python TestQgsPalLabeling.tearDownClass怎么用?Python TestQgsPalLabeling.tearDownClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在test_qgspallabeling_base.TestQgsPalLabeling的用法示例。


在下文中一共展示了TestQgsPalLabeling.tearDownClass方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: tearDownClass

# 需要导入模块: from test_qgspallabeling_base import TestQgsPalLabeling [as 别名]
# 或者: from test_qgspallabeling_base.TestQgsPalLabeling import tearDownClass [as 别名]
 def tearDownClass(cls):
     """Run after all tests"""
     TestQgsPalLabeling.tearDownClass()
     cls.removeMapLayer(cls.layer)
     cls.layer = None
     # avoid crash on finish, probably related to https://bugreports.qt.io/browse/QTBUG-35760
     QThreadPool.globalInstance().waitForDone()
开发者ID:minorua,项目名称:QGIS,代码行数:9,代码来源:test_qgspallabeling_composer.py

示例2: tearDownClass

# 需要导入模块: from test_qgspallabeling_base import TestQgsPalLabeling [as 别名]
# 或者: from test_qgspallabeling_base.TestQgsPalLabeling import tearDownClass [as 别名]
 def tearDownClass(cls):
     """Run after all tests"""
     TestQgsPalLabeling.tearDownClass()
     # layers removed, save empty project file
     cls._TestProj.write()
     if "PAL_SERVER_TEMP" in os.environ:
         MAPSERV.stop_processes()
         MAPSERV.open_temp_dir()
     else:
         MAPSERV.shutdown()
开发者ID:CSRedRat,项目名称:QGIS,代码行数:12,代码来源:test_qgspallabeling_server.py

示例3: tearDownClass

# 需要导入模块: from test_qgspallabeling_base import TestQgsPalLabeling [as 别名]
# 或者: from test_qgspallabeling_base.TestQgsPalLabeling import tearDownClass [as 别名]
 def tearDownClass(cls):
     TestQgsPalLabeling.tearDownClass()
     cls.removeMapLayer(cls.layer)
     cls.layer = None
开发者ID:Jokenbol,项目名称:QGIS,代码行数:6,代码来源:test_qgspallabeling_canvas.py

示例4: tearDownClass

# 需要导入模块: from test_qgspallabeling_base import TestQgsPalLabeling [as 别名]
# 或者: from test_qgspallabeling_base.TestQgsPalLabeling import tearDownClass [as 别名]
 def tearDownClass(cls):
     TestQgsPalLabeling.tearDownClass()
     # avoid crash on finish, probably related to https://bugreports.qt.io/browse/QTBUG-35760
     QThreadPool.globalInstance().waitForDone()
开发者ID:Cracert,项目名称:Quantum-GIS,代码行数:6,代码来源:test_qgspallabeling_placement.py

示例5: tearDownClass

# 需要导入模块: from test_qgspallabeling_base import TestQgsPalLabeling [as 别名]
# 或者: from test_qgspallabeling_base.TestQgsPalLabeling import tearDownClass [as 别名]
 def tearDownClass(cls):
     """Run after all tests"""
     TestQgsPalLabeling.tearDownClass()
     # layers removed, save empty project file
     cls._TestProj.write()
开发者ID:AnAvidDeveloper,项目名称:QGIS,代码行数:7,代码来源:test_qgspallabeling_server.py

示例6: tearDownClass

# 需要导入模块: from test_qgspallabeling_base import TestQgsPalLabeling [as 别名]
# 或者: from test_qgspallabeling_base.TestQgsPalLabeling import tearDownClass [as 别名]
 def tearDownClass(cls):
     """Run after all tests"""
     TestQgsPalLabeling.tearDownClass()
开发者ID:makandok,项目名称:QGIS,代码行数:5,代码来源:test_qgspallabeling_composer.py


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