Ejemplo n.º 1
0
 def install_cap(self):
     path = settings.value('filepicker/path', None)
     (cap, _) = QtGui.QFileDialog.getOpenFileName(self, m.select_cap, path,
                                                  "*.cap")
     if not cap:
         return
     settings.setValue('filepicker/path', os.path.dirname(cap))
     worker = QtCore.QCoreApplication.instance().worker
     self._cap = os.path.basename(cap)
     worker.post(m.installing, partial(self._neo.install_app, cap),
                 self.install_done)
Ejemplo n.º 2
0
 def install_cap(self):
     path = settings.value('filepicker/path', None)
     (cap, _) = QtGui.QFileDialog.getOpenFileName(self, m.select_cap,
                                                  path, "*.cap")
     if not cap:
         return
     settings.setValue('filepicker/path', os.path.dirname(cap))
     worker = QtCore.QCoreApplication.instance().worker
     self._cap = os.path.basename(cap)
     worker.post(m.installing, partial(self._neo.install_app, cap),
                 self.install_done)
Ejemplo n.º 3
0
 def __setitem__(self, key, value):
     settings.setValue('%s/%s' % (self._group, key), value)
Ejemplo n.º 4
0
 def closeEvent(self, event):
     settings.setValue('window/size', self.size())
     settings.setValue('window/pos', self.pos())
     event.accept()
 def closeEvent(self, event):
     settings.setValue('window/size', self.size())
     event.accept()
Ejemplo n.º 6
0
 def __setitem__(self, key, value):
     settings.setValue('%s/%s' % (self._group, key), value)