예제 #1
0
파일: Asunto.py 프로젝트: spyy/Python
 def alusta( self ):
     os.mkdir( self.hakemisto )
     tapahtumat = Tapahtumat( self.hakemisto )
     tapahtumat.initialize()
     f = open( self.__nimi, "w" )
     f.close()
     f = open( self.__paivays, "w" )
     f.close()
예제 #2
0
 def alusta(self):
     os.mkdir(self.hakemisto)
     tapahtumat = Tapahtumat(self.hakemisto)
     tapahtumat.initialize()
     f = open(self.__nimi, "w")
     f.close()
     f = open(self.__paivays, "w")
     f.close()
예제 #3
0
파일: Asunto.py 프로젝트: spyy/Python
 def poistaTapahtumat( self ):
     tapahtumat = Tapahtumat( self.hakemisto )
     tapahtumat.clear()
     self.__kirjoitaPaivays( " " )        
예제 #4
0
파일: Asunto.py 프로젝트: spyy/Python
 def lisaaTapahtuma( self, teksti ):
     tapahtumat = Tapahtumat( self.hakemisto )
     tapahtumat.add( teksti )
     self.__kirjoitaPaivays( self.__tamapaiva() )        
예제 #5
0
파일: Asunto.py 프로젝트: spyy/Python
 def tapahtumat( self ):
     tapahtumat = Tapahtumat( self.hakemisto )
     return tapahtumat.read()
예제 #6
0
파일: Asunto.py 프로젝트: spyy/Python
 def poista( self ):
     tapahtumat = Tapahtumat( self.hakemisto )
     tapahtumat.delete()
     os.remove( self.__nimi )
     os.remove( self.__paivays )
     os.rmdir( self.hakemisto )
예제 #7
0
 def poistaTapahtumat(self):
     tapahtumat = Tapahtumat(self.hakemisto)
     tapahtumat.clear()
     self.__kirjoitaPaivays(" ")
예제 #8
0
 def lisaaTapahtuma(self, teksti):
     tapahtumat = Tapahtumat(self.hakemisto)
     tapahtumat.add(teksti)
     self.__kirjoitaPaivays(self.__tamapaiva())
예제 #9
0
 def tapahtumat(self):
     tapahtumat = Tapahtumat(self.hakemisto)
     return tapahtumat.read()
예제 #10
0
 def poista(self):
     tapahtumat = Tapahtumat(self.hakemisto)
     tapahtumat.delete()
     os.remove(self.__nimi)
     os.remove(self.__paivays)
     os.rmdir(self.hakemisto)