gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] fenfire/org/fenfire/demo buoyoing.py


From: Benja Fallenstein
Subject: [Gzz-commits] fenfire/org/fenfire/demo buoyoing.py
Date: Mon, 09 Jun 2003 15:41:44 -0400

CVSROOT:        /cvsroot/fenfire
Module name:    fenfire
Branch:         
Changes by:     Benja Fallenstein <address@hidden>      03/06/09 15:41:44

Modified files:
        org/fenfire/demo: buoyoing.py 

Log message:
        a 'home' paper

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/fenfire/fenfire/org/fenfire/demo/buoyoing.py.diff?tr1=1.64&tr2=1.65&r1=text&r2=text

Patches:
Index: fenfire/org/fenfire/demo/buoyoing.py
diff -u fenfire/org/fenfire/demo/buoyoing.py:1.64 
fenfire/org/fenfire/demo/buoyoing.py:1.65
--- fenfire/org/fenfire/demo/buoyoing.py:1.64   Sun Jun  8 08:57:22 2003
+++ fenfire/org/fenfire/demo/buoyoing.py        Mon Jun  9 15:41:44 2003
@@ -101,6 +101,7 @@
     ppAct.assocNotes(noteA1, 1, noteB1)
 
     paperC = ppAct.newPaper()
+    noteC = Nodes.get(ppAct.newNote(paperC, 0, 0, 'HOME'))
 
 
 textstyle = vob.GraphicsAPI.getInstance().getTextStyle("sans", 0, 24)
@@ -166,10 +167,11 @@
 
 
 class DoubleGeometer:
-    def __init__(self):
+    def __init__(self, mgr):
        self.split = .5
        self.height = 100
        self.width = 100
+        self.mgr = mgr
     def _doset(self, vs):
 
         w,h = vs.size.width, vs.size.height
@@ -199,7 +201,7 @@
         #h1 = (1-self.split) * h
 
         w0 = w*2/3
-        h0 = w/2
+        h0 = w/2 - 20
 
         w1 = w+100
         h1 = h/5+100
@@ -219,7 +221,7 @@
 
        vs.coords.setOrthoBoxParams(self.into1, 1, 
                      ctrx - .5*w0*s0,
-                      0,
+                      20,
                      s0, s0, 
                      w0, h0)
 
@@ -291,7 +293,9 @@
             self.split += .03
         elif key == "-":
             self.split -= .03
-        if key == "Ctrl-Q":
+        elif key == "Home":
+            self.mgr.singles[1].mainNode = ff.view.buoy.MainNode2D(planeC, 
irregu)
+        elif key == "Ctrl-Q":
             from java.lang import System
             System.exit(43)
         elif key == "Ctrl-R":
@@ -310,7 +314,7 @@
     def __init__(self):
        vob.buoy.buoymanager.MultiBuoyManager.__init__(self, 
                [mainNode, mainNode2], [ppconnector, tconnector],
-               DoubleGeometer(), context)
+               DoubleGeometer(self), context)
 
 currentScene = Scene()
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]