Esempio n. 1
0
 def on_btnRefreshEvents_released(self):
     self.lWidgetEvent.clear()
     GlobalVar.EventPaths = ImageManagementUtil.loadAllInDirectory(
         GlobalVar.EventDirectory)
     GlobalVar.EventNames = ImageManagementUtil.parseDirectories(
         GlobalVar.EventPaths)
     self.lWidgetEvent.addItems(GlobalVar.EventNames)
Esempio n. 2
0
 def __init__(self, parent = None):
     GlobalVar.SourceDirectory = str(ConfigIO.getSourceDirectory()).replace('\n', '').replace('\t', '').replace('\r', '')
     GlobalVar.DestinationDirectory = ""
     GlobalVar.EventDirectory = str(ConfigIO.getEventDirectory()).replace('\n', '').replace('\t', '').replace('\r', '')
     GlobalVar.SymLinkDirectory = str(ConfigIO.getSymLinkDirectory()).replace('\n', '').replace('\t', '').replace('\r', '')
     GlobalVar.AllPhotoPaths = ImageManagementUtil.loadAllUnderDirectory(GlobalVar.EventDirectory)
     QMainWindow.__init__(self, parent)
     self.setupUi(self)
     GlobalVar.EventPaths = ImageManagementUtil.loadAllInDirectory(GlobalVar.EventDirectory)
     GlobalVar.EventNames = ImageManagementUtil.parseDirectories(GlobalVar.EventPaths)
     self.lWidgetEvent.addItems(GlobalVar.EventNames)
     self.lcdNumberTotalImages.display(len(GlobalVar.AllPhotoPaths))
     self.btnUpload.setEnabled(False)
Esempio n. 3
0
 def __init__(self, parent=None):
     GlobalVar.SourceDirectory = str(ConfigIO.getSourceDirectory()).replace(
         '\n', '').replace('\t', '').replace('\r', '')
     GlobalVar.DestinationDirectory = ""
     GlobalVar.EventDirectory = str(ConfigIO.getEventDirectory()).replace(
         '\n', '').replace('\t', '').replace('\r', '')
     GlobalVar.SymLinkDirectory = str(
         ConfigIO.getSymLinkDirectory()).replace('\n', '').replace(
             '\t', '').replace('\r', '')
     GlobalVar.AllPhotoPaths = ImageManagementUtil.loadAllUnderDirectory(
         GlobalVar.EventDirectory)
     QMainWindow.__init__(self, parent)
     self.setupUi(self)
     GlobalVar.EventPaths = ImageManagementUtil.loadAllInDirectory(
         GlobalVar.EventDirectory)
     GlobalVar.EventNames = ImageManagementUtil.parseDirectories(
         GlobalVar.EventPaths)
     self.lWidgetEvent.addItems(GlobalVar.EventNames)
     self.lcdNumberTotalImages.display(len(GlobalVar.AllPhotoPaths))
     self.btnUpload.setEnabled(False)
Esempio n. 4
0
 def on_btnRefreshEvents_released(self):
     self.lWidgetEvent.clear()
     GlobalVar.EventPaths = ImageManagementUtil.loadAllInDirectory(GlobalVar.EventDirectory)
     GlobalVar.EventNames = ImageManagementUtil.parseDirectories(GlobalVar.EventPaths)
     self.lWidgetEvent.addItems(GlobalVar.EventNames)