Пример #1
0
 def onELog(self):
     logger.debug('onELog', self.name)
     pixmap = QtGui.QPixmap.grabWidget(self)
     fname  = fnm.path_gui_image()
     status = pixmap.save(fname, 'PNG')
     logger.info('1. Save GUI image in file: ' + fname + ' status: '+str(status), self.name)
     if not status : return
     logger.info('2. Send GUI image in ELog: ', fname)
     wdialog = GUIELogPostingDialog (self, fname=fname)
     resp=wdialog.exec_()
Пример #2
0
 def onELog(self):
     logger.debug('onELog', self.name)
     pixmap = QtGui.QPixmap.grabWidget(self)
     fname = fnm.path_gui_image()
     status = pixmap.save(fname, 'PNG')
     logger.info(
         '1. Save GUI image in file: ' + fname + ' status: ' + str(status),
         self.name)
     if not status: return
     logger.info('2. Send GUI image in ELog: ', fname)
     wdialog = GUIELogPostingDialog(self, fname=fname)
     resp = wdialog.exec_()
Пример #3
0
 def onFile(self):
     logger.debug('onFile', self.name)
     path  = fnm.path_gui_image()
     #dir, fname = os.path.split(path)
     path  = str( QtGui.QFileDialog.getSaveFileName(self,
                                                    caption='Select file to save the GUI',
                                                    directory = path,
                                                    filter = '*.png'
                                                    ) )
     if path == '' :
         logger.debug('Saving is cancelled.', self.name)
         return
     logger.info('Save GUI image in file: ' + path, self.name)
     pixmap = QtGui.QPixmap.grabWidget(self)
     status = pixmap.save(path, 'PNG')
Пример #4
0
 def onFile(self):
     logger.debug('onFile', self.name)
     path = fnm.path_gui_image()
     #dir, fname = os.path.split(path)
     path = str(
         QtGui.QFileDialog.getSaveFileName(
             self,
             caption='Select file to save the GUI',
             directory=path,
             filter='*.png'))
     if path == '':
         logger.debug('Saving is cancelled.', self.name)
         return
     logger.info('Save GUI image in file: ' + path, self.name)
     pixmap = QtGui.QPixmap.grabWidget(self)
     status = pixmap.save(path, 'PNG')