- 博客(5)
- 收藏
- 关注
转载 GTK+透明窗口
#coding:utf-8 import gtk import cairo class Lrc(object): def __init__(self): self.win = gtk.Window(gtk.WINDOW_TOPLEVEL); self.alpha = 0.5 self.win.add_events(gtk.gdk.ALL_EVENTS_MASK); se
2012-09-05 10:32:18
974
原创 gtk多线程控制暂停和继续.(HAI)
import threading import time import os event = 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
831
转载 event信号控制线程
import threading import time event = 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
532
转载 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_file else: yie
2012-08-28 15:51:14
460
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人