Exemplo n.º 1
0
 def reload(self):
    
     log=""
     log=log+self.gSet.closeSet()
     del self.gSet
     self.gSet=gipsySet()
     try:
         log=log+self.gSet.loadSet(self.setname)
     except gipsyException as g:
         raise g
         return
     
     
     try:
         text=unicode(self.gSet.getProperties())
     except gipsyException as g:
         raise g
         return
     self.PropertiesText.setHtml("")
     self.PropertiesText.insertHtml("<pre>"+text+"</pre>")
     cursor=self.PropertiesText.textCursor()
     cursor.setPosition(0)
     self.PropertiesText.setTextCursor(cursor)
         
     try:
        self.commentsArea.setText(unicode(self.gSet.getComments()))
     except gipsyException as g:
         raise g
         return
     
     return log
Exemplo n.º 2
0
 def __init__(self, setname):
     super(view_gipsySet, self).__init__()
     self.setupUi(self)
     self.gSet=gipsySet()
     self.setname=setname