Beispiel #1
0
Datei: screen.py Projekt: QGB/pm
# 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()
Beispiel #2
0
Datei: fn.py Projekt: QGB/PVote
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()
Beispiel #3
0
Datei: othello.py Projekt: QGB/pm
		def exit(s,event):
			U.x()