[Top][All Lists]
[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()
- [Gzz-commits] fenfire/org/fenfire/demo buoyoing.py, Benja Fallenstein, 2003/06/07
- [Gzz-commits] fenfire/org/fenfire/demo buoyoing.py, Benja Fallenstein, 2003/06/08
- [Gzz-commits] fenfire/org/fenfire/demo buoyoing.py, Benja Fallenstein, 2003/06/08
- [Gzz-commits] fenfire/org/fenfire/demo buoyoing.py,
Benja Fallenstein <=
- [Gzz-commits] fenfire/org/fenfire/demo buoyoing.py, Benja Fallenstein, 2003/06/09
- [Gzz-commits] fenfire/org/fenfire/demo buoyoing.py, Benja Fallenstein, 2003/06/09
- [Gzz-commits] fenfire/org/fenfire/demo buoyoing.py, Benja Fallenstein, 2003/06/09
- [Gzz-commits] fenfire/org/fenfire/demo buoyoing.py, Benja Fallenstein, 2003/06/09
- [Gzz-commits] fenfire/org/fenfire/demo buoyoing.py, Matti Katila, 2003/06/14
- [Gzz-commits] fenfire/org/fenfire/demo buoyoing.py, Benja Fallenstein, 2003/06/19
- [Gzz-commits] fenfire/org/fenfire/demo buoyoing.py, Matti Katila, 2003/06/22
- [Gzz-commits] fenfire/org/fenfire/demo buoyoing.py, Matti Katila, 2003/06/23
- [Gzz-commits] fenfire/org/fenfire/demo buoyoing.py, Tuomas J. Lukka, 2003/06/24
- [Gzz-commits] fenfire/org/fenfire/demo buoyoing.py, Benja Fallenstein, 2003/06/26