def updateTimePositionFromTextBox(self, date): if not self.propagateGuiChanges: return if time_util.is_archaelogical(): bcdate = bcdate_util.BCDate.from_str(date, strict_zeros=False) bcdate.setDigits(bcdate_util.getGlobalDigitSetting()) self.getTimeLayerManager().setCurrentTimePosition(bcdate) else: self.getTimeLayerManager().setCurrentTimePosition(QDateTime_to_datetime(date))
def updateTimePositionFromTextBox(self,date): if not self.propagateGuiChanges: return if time_util.is_archaelogical(): bcdate = bcdate_util.BCDate.from_str(date, strict_zeros=False) bcdate.setDigits(bcdate_util.getGlobalDigitSetting()) self.getTimeLayerManager().setCurrentTimePosition(bcdate) else: self.getTimeLayerManager().setCurrentTimePosition(QDateTime_to_datetime(date))
def getArchDigits(): return bcdate_util.getGlobalDigitSetting()