# -*- coding: utf-8 -*-
from Tkinter import *
def btn_click():
b2['text'] = 'clicked'
evalue = e.get()
print 'btn Click and Entry value is %s' % evalue
def btn_click_bind(event):
pr...
分类:
编程语言 时间:
2014-08-28 00:59:58
阅读次数:
269
题目地址:HDU 1171
还是水题。。普通的01背包。注意数组要开大点啊。。。。
代码如下:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
int dp[260000], v...
分类:
其他好文 时间:
2014-08-27 22:02:29
阅读次数:
183
http://acm.hdu.edu.cn/showproblem.php?pid=1171Problem DescriptionNowadays, we all know that Computer College is the biggest department in HDU. But, ma...
分类:
其他好文 时间:
2014-08-27 21:49:38
阅读次数:
268
当在非UI线程中更新UI(程序界面)时会出现如下图所示的异常:
Only the original thread that created a view hierarchy can touch its views.
那如何才能在非UI线程中更细UI呢?
方法有很多种,在这里主要介绍两种:
第一种:在需要更新UI的代码行后加Looper.prepare();与Looper.loop();两句话即可。如:...
分类:
移动开发 时间:
2014-08-27 20:34:08
阅读次数:
352
好久没来了,密码都差点忘了,顺便记录下今天配置环境碰到的小问题网站使用的form authentication做SSO登录,登录域名使用的framework20配置环境一个栏目升级为4.0环境后,发现认证票据失效了,日志信息如下:Event code: 4005 Event message: For...
分类:
其他好文 时间:
2014-08-27 18:32:18
阅读次数:
151
window.onpageshow = function(event) { if (event.persisted) {alert("From back / forward cache."); } };页面显示(pageshow)和页面隐藏(pagehide)事件 分类: web开发学习 2012-...
分类:
其他好文 时间:
2014-08-27 12:41:57
阅读次数:
380
DELIMITER //CREATE PROCEDURE p_addscore(nums INT,OUT retrows INT)BEGINDECLARE i INT DEFAULT 0;add_loop:LOOP IF i >= nums THEN LEAVE add_loop; END IF;....
分类:
数据库 时间:
2014-08-27 12:34:07
阅读次数:
182
代码:/*去掉iphone手机滑动默认行为*/$('body').on('touchmove', function (event) { event.preventDefault();});
分类:
微信 时间:
2014-08-27 12:24:47
阅读次数:
2328
js获取鼠标坐标实例,关键代码如下: 1.js 代码 /*显示坐标*/
function?showTip(obj){
//if(!$.trim($(obj).html()))
// return?false;
var?event=window.event;
var?element=event.srcElement;...
分类:
Web程序 时间:
2014-08-27 11:14:08
阅读次数:
257
目录:
Windows Messages
Message Types
System-Defined Messages
Application-Defined Messages
Message Routing
Queued Messages
Nonqueued Messages
Message Handling
Message Loop
Window Pr...
分类:
其他好文 时间:
2014-08-27 09:27:18
阅读次数:
405