示例#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)
示例#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)
示例#3
0
 def __setitem__(self, key, value):
     settings.setValue('%s/%s' % (self._group, key), value)
 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()
示例#6
0
 def __setitem__(self, key, value):
     settings.setValue('%s/%s' % (self._group, key), value)