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