Example #1
0
File: acinfo.py Project: prunn/ACTV
 def reDrawSize(self):
     self.rowHeight=self.ui_row_height.value+2
     fontSize=getFontSize(self.rowHeight)
     self.row2Height=self.ui_row_height.value
     fontSize2=getFontSize(self.row2Height)
     width=self.rowHeight*7
     self.lbl_driver_name.setSize(width, self.rowHeight).setFontSize(fontSize)
     self.lbl_driver_name2.setSize(width, self.rowHeight).setFontSize(fontSize)
     self.lbl_timing.setSize(width, self.row2Height).setPos(0, self.rowHeight).setFontSize(fontSize2)
     self.lbl_split.setSize(self.rowHeight*4.7, self.row2Height).setPos(self.rowHeight, self.rowHeight).setFontSize(fontSize2)
     self.lbl_fastest_split.setSize(self.rowHeight*5.7, self.row2Height).setPos(self.rowHeight, self.rowHeight).setFontSize(fontSize2)
     self.info_position.setSize(self.rowHeight, self.rowHeight).setFontSize(fontSize)
     self.info_position_lead.setSize(self.row2Height, self.row2Height).setPos(width-self.row2Height, self.rowHeight).setFontSize(fontSize2)      
     self.lbl_border.setSize(width, 1).setPos(0, self.rowHeight)
Example #2
0
 def reDrawSize(self):
     if self.__class__.ui_row_height > 0:
         self.rowHeight.setValue(self.__class__.ui_row_height)
     else:
         self.rowHeight.setValue(38)
     if self.rowHeight.hasChanged():
         fontSize = getFontSize(self.rowHeight.value)
         fontSize2 = getFontSize(self.rowHeight.value - 16)
         rowHeight2 = self.rowHeight.value - 16
         # width=self.rowHeight*5
         self.lbl_delta.setSize(rowHeight2 / 24 * 32 + 120, self.rowHeight.value).setFontSize(fontSize)
         self.lbl_lap.setSize(rowHeight2 / 24 * 32 + 120, rowHeight2).setPos(
             0, self.rowHeight.value + 54
         ).setFontSize(fontSize2)
         self.btn_reset.setSize(self.rowHeight.value + 26, rowHeight2).setPos(
             90, self.rowHeight.value * 2 + 48
         ).setFontSize(fontSize2)
Example #3
0
	def reDrawSize(self):
		self.rowHeight=self.ui_row_height.value
		fontSize=getFontSize(self.rowHeight)
		width=self.rowHeight*5
		self.lbl_session_info.setSize(self.rowHeight*4, self.rowHeight).setPos(self.rowHeight, 0).setFontSize(fontSize)		
		self.lbl_session_title.setSize(self.rowHeight, self.rowHeight).setFontSize(fontSize)		
		self.lbl_session_single.setSize(width, self.rowHeight).setFontSize(fontSize)		
		self.lbl_session_border.setSize(width, 1).setPos(0, self.rowHeight+1)	
		if len(self.finish_labels) > 0:
			i=0
			j=0
			height=self.rowHeight/3
			for label in self.finish_labels:
				label.setSize(height, height)
				if i % 2 == 1 and j < 7:		
					label.setPos(height + j*height*2, i*height)
				elif i % 2 == 0:
					label.setPos(j*height*2, i*height)
				j+=1
				if (i % 2 == 0 and j >= 8) or (i % 2 == 1 and j >= 7):
					i+=1
					j=0	
Example #4
0
 def reDrawSize(self):
     self.rowHeight=self.ui_row_height.value
     fontSize=getFontSize(self.rowHeight)
     self.lbl_title.setSize(self.rowHeight, self.rowHeight).setFontSize(fontSize)
     self.lbl_time.setSize(self.rowHeight*4.8, self.rowHeight).setPos(self.rowHeight, 0).setFontSize(fontSize)
     self.lbl_border.setSize(self.rowHeight*5.8, 1).setPos(0, self.rowHeight+1)