Update of /cvsroot/pythoncard/PythonCard/samples
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16543/samples
Modified Files:
samples.py
Log Message:
removed Stack class, changed self.stack.app references to self.application
changed childWindow, Background, and CustomDialog inits so stack arg
isn't passed in. only did minimal testing of tools and samples
Index: samples.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/samples/samples.py,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -d -r1.56 -r1.57
*** samples.py 5 May 2004 16:53:24 -0000 1.56
--- samples.py 10 May 2004 00:45:18 -0000 1.57
***************
*** 82,88 ****
name = self.components.listSamples.stringSelection
if name == "samples":
! path = self.stack.app.applicationDirectory
else:
! path = os.path.join(self.stack.app.applicationDirectory, name)
if os.path.exists(os.path.join(path, name + ".pyw")):
filename = os.path.join(path, name + ".pyw")
--- 82,88 ----
name = self.components.listSamples.stringSelection
if name == "samples":
! path = self.application.applicationDirectory
else:
! path = os.path.join(self.application.applicationDirectory, name)
if os.path.exists(os.path.join(path, name + ".pyw")):
filename = os.path.join(path, name + ".pyw")
|