111 |
self.pq = getpaper(self.seed) |
self.pq = getpaper(self.seed) |
112 |
|
|
113 |
def key(self, k): |
def key(self, k): |
114 |
|
global tex0comb,tex1comb,isectcomb |
115 |
global x0, y0, x1, y1 |
global x0, y0, x1, y1 |
116 |
oldseed = self.seed |
oldseed = self.seed |
117 |
if k == "v": |
if k == "v": |
121 |
elif k == "Left": x0 -= 20 |
elif k == "Left": x0 -= 20 |
122 |
elif k == "Right": x0 += 20 |
elif k == "Right": x0 += 20 |
123 |
elif k == "F1": |
elif k == "F1": |
|
global tex0comb |
|
124 |
list = tex0codes.keys() |
list = tex0codes.keys() |
125 |
tex0comb = list[(list.index(tex0comb) + 1) % len(list)] |
tex0comb = list[(list.index(tex0comb) + 1) % len(list)] |
126 |
print "Using", tex0comb, tex1comb, isectcomb, "combiners" |
print "Using", tex0comb, tex1comb, isectcomb, "combiners" |
127 |
self.initpaper() |
self.initpaper() |
128 |
elif k == "F2": |
elif k == "F2": |
|
global tex1comb |
|
129 |
list = tex1codes.keys() |
list = tex1codes.keys() |
130 |
tex1comb = list[(list.index(tex1comb) + 1) % len(list)] |
tex1comb = list[(list.index(tex1comb) + 1) % len(list)] |
131 |
print "Using", tex0comb, tex1comb, isectcomb, "combiners" |
print "Using", tex0comb, tex1comb, isectcomb, "combiners" |
132 |
self.initpaper() |
self.initpaper() |
133 |
elif k == "F3": |
elif k == "F3": |
|
global isectcomb |
|
134 |
list = isectcodes.keys() |
list = isectcodes.keys() |
135 |
isectcomb = list[(list.index(isectcomb) + 1) % len(list)] |
isectcomb = list[(list.index(isectcomb) + 1) % len(list)] |
136 |
print "Using", tex0comb, tex1comb, isectcomb, "combiners" |
print "Using", tex0comb, tex1comb, isectcomb, "combiners" |