Exemplo n.º 1
0
 def setTemp(self, widget, data=None):
     ClipBoard.setContent(data.getName())
     ClipBoard.clipListener()
     
     self.curtable.destroy()
     self.curtable = gtk.Table(2,  4 ,  False)
     self.drawTable([PyClip.archive[0]], "Current")
 
     self.switchPage(None, "Archived")
Exemplo n.º 2
0
 def delete(self, widget, data=None, type=None):        
     if type == "Archived":
         if PyClip.archive[0] == data:
             PyClip.archive.remove(data)
             self.curtable.destroy()
             self.curtable = gtk.Table(2, 4, False)
             if len(PyClip.archive) > 0:
                 self.drawTable([PyClip.archive[0]], "Current")
                 ClipBoard.setContent(PyClip.archive[0].getName())
         else:
             PyClip.archive.remove(data)
         
         self.switchPage(None, "Archived")
    
     elif type == "Saved":
         PyClip.saved.remove(data)
         self.savetable.destroy()
         self.savetable = gtk.Table(2, 4, False)
         self.drawTable(PyClip.saved, "Saved")