这个错误的出现是因为一个在File's Owner中一个已经链接的Interface Builder对象被删除或重命名了。
在 Interface Builder的Files's Owner右键查看,如果看到有警告标识,就是问题的所在。
下图中“aRemovedView“就有一个警告标识,这是因为我已经将它移除了,但是它还仍链接在IB中。因此就会给出错误:”Terminating
...
分类:
移动开发 时间:
2014-08-15 00:07:46
阅读次数:
316
因为有 “用户上传脚本,动态运行”的需求,所以要动态地import用户上传的模块
所以写了个函数动态地import
# -*- coding: utf-8 -*-
import os
import sys
import os.path
import Queue
import commands
def test(rootDir):
#判断传入的路径下是否有“__ini...
分类:
编程语言 时间:
2014-08-14 20:52:29
阅读次数:
259
最近需要做一个功能,统计bug的数量,然后发邮件给指定人,所有就先要了解一下使用python发送邮件代码如下:#coding: utf-8 import smtplib from email.MIMEText import MIMETextfrom email.Header import Head....
分类:
编程语言 时间:
2014-08-14 20:20:39
阅读次数:
239
Emmet的前身是Zen coding,它使用仿CSS选择器的语法来生成代码,大大提高了HTML/CSS代码编写的速度。Emmet官网:http://www.emmet.io/上图为编码演示1.初始化HTML文档需要包含一些固定的标签,比如、、等,现在你只需要1秒钟就可以输入这些标签。比如输入“!”...
分类:
Web程序 时间:
2014-08-14 16:41:20
阅读次数:
272
#-*-coding:utf-8-*-#python:2.x__author__='Administrator'fromPyQt4.Qtimport*fromPyQt4.QtGuiimport*fromPyQt4.QtCoreimport*importsys,os"""模型进行自定义:QSortFi...
分类:
其他好文 时间:
2014-08-13 21:30:47
阅读次数:
336
#-*-coding:utf-8-*-#python:2.x__author__='Administrator'fromPyQt4.Qtimport*fromPyQt4.QtGuiimport*fromPyQt4.QtCoreimport*importsys,os"""在列表、树或者表格中,通过鼠标...
分类:
其他好文 时间:
2014-08-13 18:04:56
阅读次数:
242
今天有个小程序想要在函数名列表中调用相应的函数处理,却怎么运行不了。初始代码如下:#coding:utf8def h1(): print '函数1'def h2(): print '函数2'if __name__ == '__main__': list1 = ['h1','h2']...
分类:
其他好文 时间:
2014-08-13 17:58:26
阅读次数:
281
#-*-coding:utf-8-*-#python:2.x__author__='Administrator'fromPyQt4.Qtimport*fromPyQt4.QtGuiimport*fromPyQt4.QtCoreimport*importsys,os#视图和委托"""视图。在model...
分类:
其他好文 时间:
2014-08-13 17:38:56
阅读次数:
209
#-*-coding:utf-8-*-#python:2.x__author__='Administrator'fromPyQt4.Qtimport*fromPyQt4.QtGuiimport*fromPyQt4.QtCoreimport*importsys,os#Qt模型类"""在模型/视图中,模...
分类:
其他好文 时间:
2014-08-13 14:41:06
阅读次数:
204
交流提纲地址:http://lazio10000.github.io/tech/Coding/index.htmlc#编码规范事例:http://lazio10000.github.io/tech/Coding/CodingConventionForDoNet.zip 博客园网友提供,地址:http...
分类:
其他好文 时间:
2014-08-13 12:41:06
阅读次数:
165