- 博客(5)
- 收藏
- 关注
转载 GTK+透明窗口
#coding:utf-8import gtkimport cairoclass Lrc(object):def __init__(self):self.win = gtk.Window(gtk.WINDOW_TOPLEVEL);self.alpha = 0.5self.win.add_events(gtk.gdk.ALL_EVENTS_MASK);se
2012-09-05 10:32:18
962
原创 gtk多线程控制暂停和继续.(HAI)
import threadingimport timeimport osevent = threading.Event()def walk(path):event.wait()try:if os.path.isdir(path):for file in os.listdir(path):file_path = os.path.join(path, fil
2012-08-28 17:09:43
816
转载 event信号控制线程
import threadingimport timeevent = threading.Event()def func():while True:print "i love c an dlinux"event.wait()def test_func2():while True:print "test_func2........"event.
2012-08-28 16:39:55
517
转载 python 简单遍历文件...
import os这里利用了迭代器.def walk(path):if os.path.isdir(path):for file in os.listdir(path):file_path = os.path.join(path, file)for sub_file in walk(file_path):yield sub_fileelse: yie
2012-08-28 15:51:14
448
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人