8 |
|
|
9 |
dbg = 0 |
dbg = 0 |
10 |
|
|
11 |
|
def p(*s): |
12 |
|
print 'appearance.views.py:: ',s |
13 |
|
|
14 |
class Views: |
class Views: |
15 |
"""Encapsulate the creation of the immutable views and connectors used in FenPDF. |
"""Encapsulate the creation of the immutable views and connectors used in FenPDF. |
16 |
|
|
109 |
mainNode = self.createMainNode(old.getPlane()) |
mainNode = self.createMainNode(old.getPlane()) |
110 |
mainNode2 = self.createMainNode(old2.getPlane()) |
mainNode2 = self.createMainNode(old2.getPlane()) |
111 |
if dbg: |
if dbg: |
112 |
print "FOCI: ",old.getFocus(), old2.getFocus(), \ |
p("FOCI: ",old.getFocus(), old2.getFocus(), \ |
113 |
mainNode.getFocus(), mainNode2.getFocus() |
mainNode.getFocus(), mainNode2.getFocus()) |
114 |
mainNode.setFocus(old.getFocus()) |
mainNode.setFocus(old.getFocus()) |
115 |
mainNode2.setFocus(old2.getFocus()) |
mainNode2.setFocus(old2.getFocus()) |
116 |
if dbg: |
if dbg: |
117 |
print "FOCI: ",old.getFocus(), old2.getFocus(), \ |
p("FOCI: ",old.getFocus(), old2.getFocus(), \ |
118 |
mainNode.getFocus(), mainNode2.getFocus() |
mainNode.getFocus(), mainNode2.getFocus()) |
119 |
else: |
else: |
120 |
# Start fresh from home |
# Start fresh from home |
121 |
mainNode = self.createMainNode(self.home) |
mainNode = self.createMainNode(self.home) |
159 |
|
|
160 |
|
|
161 |
if self.fenPDF.animation.reuseVs: |
if self.fenPDF.animation.reuseVs: |
162 |
|
p('reuse vobscene') |
163 |
return self.fenPDF.animation.lastVs |
return self.fenPDF.animation.lastVs |
164 |
|
|
165 |
self.background.placeBackDrop(vs) |
self.background.placeBackDrop(vs) |