# pdb.set_trace() io=0 def singleback(msg): global io,top io+=1 if(io%2==0):top.lower() else:top.attributes('-topmost',1) # U.x() if(U.notsingle(2233)):U.x(msg='twice') #U.x() U.single(port=2233,callback=singleback) # help(ImageGrab.grab) w, h = 1113-620,259 img = ImageGrab.grab((620,0,1113,259)) top=Tk()
from qgb import U, T, Clipboard import os, sys basedir = os.path.dirname(__file__) path = basedir + """\DEMO_files""" sfd = basedir + "/vote.html" sd = U.read(sfd) for f in os.listdir(path): if not f.endswith("jpg"): continue # if :continue i = -1 try: i = int(f[:1]) except: continue sd = sd.replace(f[1:], f) # print f print sd U.write(sfd, sd) U.x()
def exit(s,event): U.x()