码迷,mamicode.com
首页 >  
搜索关键字:event loop    ( 13946个结果
Python Tkinter 基础控件学习
# -*- 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 Big Event in HDU(01背包)
题目地址: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
HDU1171:Big Event in HDU
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
Android开之在非UI线程中更新UI
当在非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
升级framework4.0后form认证票据失效的问题
好久没来了,密码都差点忘了,顺便记录下今天配置环境碰到的小问题网站使用的form authentication做SSO登录,登录域名使用的framework20配置环境一个栏目升级为4.0环境后,发现认证票据失效了,日志信息如下:Event code: 4005 Event message: For...
分类:其他好文   时间:2014-08-27 18:32:18    阅读次数:151
处理safari缓存的办法
window.onpageshow = function(event) { if (event.persisted) {alert("From back / forward cache."); } };页面显示(pageshow)和页面隐藏(pagehide)事件 分类: web开发学习 2012-...
分类:其他好文   时间:2014-08-27 12:41:57    阅读次数:380
mysql 存储过程--- 创建,调用,删除
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手机上下滑动网页
代码:/*去掉iphone手机滑动默认行为*/$('body').on('touchmove', function (event) { event.preventDefault();});
分类:微信   时间:2014-08-27 12:24:47    阅读次数:2328
js获取鼠标坐标实例
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
About Messages and Message Queues
目录: 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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!