From: Kevin A. <ka...@us...> - 2004-05-10 00:46:05
|
Update of /cvsroot/pythoncard/PythonCard/samples/jabberChat In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16543/samples/jabberChat Modified Files: jabberChat.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: jabberChat.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/jabberChat/jabberChat.py,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** jabberChat.py 5 May 2004 16:53:26 -0000 1.30 --- jabberChat.py 10 May 2004 00:45:19 -0000 1.31 *************** *** 76,80 **** if not os.path.exists(self.configPath): os.mkdir(self.configPath) ! basePath = self.stack.app.applicationDirectory configPath = os.path.join(self.configPath, CONFIG_FILE) if not os.path.exists(configPath): --- 76,80 ---- if not os.path.exists(self.configPath): os.mkdir(self.configPath) ! basePath = self.application.applicationDirectory configPath = os.path.join(self.configPath, CONFIG_FILE) if not os.path.exists(configPath): *************** *** 248,252 **** if self.config['playsound']: try: ! filename = os.path.join(self.stack.app.applicationDirectory, 'incoming.wav') snd = sound.Sound(filename) snd.play(1, 0) --- 248,252 ---- if self.config['playsound']: try: ! filename = os.path.join(self.application.applicationDirectory, 'incoming.wav') snd = sound.Sound(filename) snd.play(1, 0) |