#-*-coding:cp936-*-#!/usr/bin/envpython#-*-coding:utf-8-*-fromPyQt4importQtCore,QtGuiclassWindow(QtGui.QMainWindow):def__init__(self):super(Window,sel...
分类:
其他好文 时间:
2014-10-04 18:35:57
阅读次数:
184
#-*-coding:cp936-*-fromPyQt4.QtCoreimport*fromPyQt4.QtGuiimport*classInlineEditor(QWidget):_MUTE='MUTE'def__init__(self,parent):QWidget.__init__(self,...
分类:
其他好文 时间:
2014-10-04 17:17:26
阅读次数:
184
#!/usr/bin/python#-*-coding:utf-8-*-#sender.pyimportsysfromPyQt4importQtGui,QtCoreclassExample(QtGui.QMainWindow):def__init__(self):super(Example,self...
分类:
其他好文 时间:
2014-10-04 17:15:36
阅读次数:
794
defbz(self):self.lable1=QtGui.QLabel(u'帮助说明'u'联系专区'u'另类高级说明'u'本地文档说明(是为未连接internet用户准备的)')self.lable1.setWindowTitle(u'帮助与支持')self.lable1.resize(100,1...
分类:
其他好文 时间:
2014-10-04 16:54:46
阅读次数:
177
".$_SERVER['PHP_SELF'];#当前正在执行脚本的文件名,与 document root相关echo "".$_SERVER['argv'];#传递给该脚本的参数。echo "".$_SERVER['argc']; #包含传递给程序的命令行参数的个数(如果运行在命令行模式)。echo...
分类:
Web程序 时间:
2014-10-04 16:09:56
阅读次数:
195
##利用Point作为例子 ``` local math = require("math") local Point = {x = 0, y = 0} Point.__index = Point function Point.new(x, y) local self = setmetatable({}, Point) if (type(x) == "table") then f...
分类:
其他好文 时间:
2014-10-04 03:34:16
阅读次数:
168
一 控制器的创建方式1、storyboard创建 1 self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 2 3 self.window.backgroundColor = [UI...
分类:
其他好文 时间:
2014-10-03 23:46:35
阅读次数:
246
?代码: class?Chain(object):
????def?__init__(self,?path=‘‘):
????????self._path?=?path
?
????def?__getattr__(self,?path):
????????return?Chain(‘%s/%s‘?%?(self._...
分类:
编程语言 时间:
2014-10-02 09:17:32
阅读次数:
206
xadmin的视图方法中如果加了@filter_hook 标记的都可以作为插件的钩子函数。例如在ListAdminView类中有许多加了上述标记的方法, @filter_hook def get_context(self): """ Prepare the c...
分类:
其他好文 时间:
2014-10-02 00:34:11
阅读次数:
374
//通过XIB的方式创建视图对象 NSBundle *bundle = [NSBundle mainBundle]; NSArray *array = [bundle loadNibNamed:@"View" owner:self options:nil]; UIView ...
分类:
移动开发 时间:
2014-10-01 23:47:11
阅读次数:
514