Fresco/Fresco-Python-demos/src berlin.py,1.12,1.13 demo.py,1.14,1.15

Nick Lewycky <[email protected]>
Newsgroups gmane.comp.video.fresco.cvs
Message-ID <[email protected]>
Update of /cvs/fresco/Fresco/Fresco-Python-demos/src
In directory purcel:/tmp/cvs-serv4690/src

Modified Files:
	berlin.py demo.py 
Log Message:
Update to avoid bitrot.
Python demos will run to a server loaded with the -R nameserver option
and no specific server id.


Index: berlin.py
===================================================================
RCS file: /cvs/fresco/Fresco/Fresco-Python-demos/src/berlin.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- berlin.py	10 Oct 2002 06:36:55 -0000	1.12
+++ berlin.py	28 Jan 2003 03:34:31 -0000	1.13
@@ -132,7 +132,7 @@
 	# get a server context
 	object = self.orb.resolve_initial_references("NameService")
 	context = object._narrow(CosNaming.NamingContext)
-	name = [CosNaming.NameComponent("IDL:fresco.org/Fresco/Server:1.0", "Object")]
+	name = [CosNaming.NameComponent("FrescoServer", "Object")]
 	object = context.resolve(name)
 	self.server = object._narrow(Fresco.Server)
 	#print "Got Server var =",self.server

Index: demo.py
===================================================================
RCS file: /cvs/fresco/Fresco/Fresco-Python-demos/src/demo.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- demo.py	10 Oct 2002 06:36:55 -0000	1.14
+++ demo.py	28 Jan 2003 03:34:31 -0000	1.15
@@ -10,7 +10,7 @@
 class DemoApp (berlin.App):
     def run(self):
 	# Create a pixmap
-	pixmap = kits.figure.pixmap(kits.image.create("berlin-128.png"))
+	pixmap = kits.figure.pixmap(kits.image.create_raster("berlin-128.png"))
 	margin = kits.layout.margin_flexible(pixmap, 100., 500., 100.)
 	spec = Fresco.ToolKit.FrameSpec(Fresco.ToolKit.outset, 0.5)
         demo = kits.tool.frame(margin, 10., spec, 1)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.