Beispiel #1
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)
Beispiel #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)
Beispiel #3
0
 def on_btnTagSearchRefresh_released(self):
     GlobalVar.AllPhotoPaths = ImageManagementUtil.loadAllUnderDirectory(GlobalVar.EventDirectory)
     self.lcdNumberTotalImages.display(len(GlobalVar.AllPhotoPaths))
Beispiel #4
0
 def on_btnTagSearchRefresh_released(self):
     GlobalVar.AllPhotoPaths = ImageManagementUtil.loadAllUnderDirectory(
         GlobalVar.EventDirectory)
     self.lcdNumberTotalImages.display(len(GlobalVar.AllPhotoPaths))