Esempio n. 1
0
    def csave(self):
        self.data.clear()
        self.data.append(self.value)
        self.data.append(self.total_lie)

        psave(self.data)
        data=pload()
Esempio n. 2
0
 def cload(self):
     data=pload()
     # print(data)
     self.value=[]
     self.total_lie=[]
     self.value=data[0]
     self.total_lie=data[1]
     # print(self.value)
     self.reloadfromfile()
Esempio n. 3
0
    def csave(self):
        self.data.clear()
        self.data.append(self.value)
        self.data.append(self.total_lie)
        self.data.append(self.headhang)
        self.data.append(self.headlie)

        psave(self.data)
        data = pload()
        print(data)
Esempio n. 4
0
 def cload(self):
     data = pload()
     # print(data)
     self.value = []
     self.total_lie = []
     self.headhang = []
     self.headlie = []
     self.value = data[0]
     self.total_lie = data[1]
     self.headhang = data[2]
     self.headlie = data[3]
     # print(self.value)
     self.reloadfromfile()