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


Python Logging.backtrace方法代码示例

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


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

示例1: getColorTransferFunction

# 需要导入模块: import Logging [as 别名]
# 或者: from Logging import backtrace [as 别名]
	def getColorTransferFunction(self):
		"""
		Returns the ctf of this object
		"""		
		if not self.dataSource and not self.ctf:
			Logging.backtrace()
			Logging.info("Using no ctf because datasource = ", self.dataSource, kw = "ctf")
			return None
		if not self.ctf:
			self.ctf = self.dataSource.getColorTransferFunction()
			#Logging.info("Ctf from datasource = ", self.ctf, kw = "ctf")
		return self.ctf
开发者ID:chalkie666,项目名称:bioimagexd-svn-import-from-sourceforge,代码行数:14,代码来源:DataUnit.py

示例2: onPaint

# 需要导入模块: import Logging [as 别名]
# 或者: from Logging import backtrace [as 别名]
	def onPaint(self, event):
		"""
		Blit the buffer
		""" 
		if self.renew:
			try:
				self.paintTrack()
			except Exception, e:
				Logging.backtrace()
				Logging.info("Failed to paint track", kw="animator")
				event.Skip()
			self.renew = False
开发者ID:chalkie666,项目名称:bioimagexd-svn-import-from-sourceforge,代码行数:14,代码来源:Track.py

示例3: onWarning

# 需要导入模块: import Logging [as 别名]
# 或者: from Logging import backtrace [as 别名]
def onWarning(obj, evt, *args):
	"""
	Show VTK error messages
	"""
	Logging.backtrace()
	print "VTK message:\n", evt
开发者ID:chalkie666,项目名称:bioimagexd-svn-import-from-sourceforge,代码行数:8,代码来源:BioImageXD.py


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