本文整理汇总了Python中window.Window.setWindowTitle方法的典型用法代码示例。如果您正苦于以下问题:Python Window.setWindowTitle方法的具体用法?Python Window.setWindowTitle怎么用?Python Window.setWindowTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类window.Window
的用法示例。
在下文中一共展示了Window.setWindowTitle方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: detect_simulated_blips
# 需要导入模块: from window import Window [as 别名]
# 或者: from window.Window import setWindowTitle [as 别名]
def detect_simulated_blips(amplitude=1):
tmpdir=os.path.join(os.path.dirname(g.settings.config_file),'tmp')
flika_fn='simulated_blips.flika'
if os.path.isdir(tmpdir):
if flika_fn in os.listdir(tmpdir):
pass
else:
shutil.rmtree(tmpdir)
os.mkdir(tmpdir)
else:
os.mkdir(tmpdir)
data_window=Window(generateBlips(amplitude),filename=os.path.join(tmpdir,'simulated_blips.tif'))
mt,mx,my=data_window.image.shape
data_window.setWindowTitle('Data Window')
norm_window=data_window
medB=3
gaussian_blur(medB,keepSourceWindow=True)
makeROI('rectangle',pts=np.array([[medB*2,medB*2],[medB*2,my-medB*2],[mx-medB*2,my-medB*2],[mx-medB*2,medB*2],[medB*2,medB*2]]))
set_value(0,0,mt-1,restrictToOutside=True)
g.m.currentWindow.setWindowTitle('Lightly Blurred')
binary_window2=threshold(.3,keepSourceWindow=True)
norm_window.setAsCurrentWindow()
binary_window3=threshold(1.5,keepSourceWindow=True)
binary_window=Window(binary_window2.image+binary_window3.image)
close([binary_window2,binary_window3])
binary_window=threshold(1.5)
binary_window.setWindowTitle('Binary Window')
threshold_cluster(binary_window,
data_window,
norm_window,
rotatedfit=False,
density_threshold=2,
time_factor=.2,
roi_width=5,
maxPuffLen=20,
maxSigmaForGaussianFit=20,
load_flika_file=True)