Indicators on Push Buttons
- JT
 - 
				
									Topic Author
											 - Away
 - Administrator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 1033
 - Thank you received: 536
 
			
	
						18 Mar 2025 12:13				#324192
		by JT
	
	
		
			
	
	
		
			
			 		
													
	
				Indicators on Push Buttons was created by JT			
			
					Attachments:
Please Log in or Create an account to join the conversation.
- cmorley
 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 7230
 - Thank you received: 2106
 
			
	
						18 Mar 2025 12:40				#324194
		by cmorley
	
	
		
			
	
	
			 		
													
	
				Replied by cmorley on topic Indicators on Push Buttons			
			
				I have a mixin class that reimplements the paint event. It first paints the normal widget then adds indicator painting.
github.com/LinuxCNC/linuxcnc/blob/master...ts/indicatorMixIn.py
					github.com/LinuxCNC/linuxcnc/blob/master...ts/indicatorMixIn.py
		The following user(s) said Thank You: JT 	
			Please Log in or Create an account to join the conversation.
- JT
 - 
				
									Topic Author
											 - Away
 - Administrator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 1033
 - Thank you received: 536
 
			
	
						19 Mar 2025 10:55				#324282
		by JT
	
	
		
			
	
			
			 		
													
	
				Replied by JT on topic Indicators on Push Buttons			
			
				Thanks Chris, that's going to take a bit of study for me to break it down. Pretty cool stuff.
JT
					JT
Please Log in or Create an account to join the conversation.
- cmorley
 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 7230
 - Thank you received: 2106
 
			
	
						19 Mar 2025 12:43				#324289
		by cmorley
	
	
		
			
	
			
			 		
													
	
				Replied by cmorley on topic Indicators on Push Buttons			
			
				Yes action buttons are some of the most complicated code.
It does make buttons a little less boring
			
					It does make buttons a little less boring
Please Log in or Create an account to join the conversation.
- JT
 - 
				
									Topic Author
											 - Away
 - Administrator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 1033
 - Thank you received: 536
 
			
	
						19 Mar 2025 13:40				#324294
		by JT
	
	
		
			
	
			
			 		
													
	
				Replied by JT on topic Indicators on Push Buttons			
			
				I think it's pretty damn cool myself.
JT
					JT
Please Log in or Create an account to join the conversation.
- CADdy
 - 
				
											 - Offline
 - Premium Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 80
 - Thank you received: 6
 
			
	
						25 May 2025 16:47				#329123
		by CADdy
	
	
		
			
	
			
			 		
													
	
				Replied by CADdy on topic Indicators on Push Buttons			
			
				Hi Chris,
how to install this widget? Only copy the file indicatorMixIn.py to /usr/lib/python3/dist-packages/qtvcp/widgets ? Can it then be used with Qt Designer?
Peter
					how to install this widget? Only copy the file indicatorMixIn.py to /usr/lib/python3/dist-packages/qtvcp/widgets ? Can it then be used with Qt Designer?
Peter
Please Log in or Create an account to join the conversation.
- cmorley
 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 7230
 - Thank you received: 2106
 
			
	
						26 May 2025 01:16				#329140
		by cmorley
	
	
		
			
	
	
			 		
													
	
				Replied by cmorley on topic Indicators on Push Buttons			
			
				IndicatorMixin is not meant to be used directly. It is 'mixed in' with another button widget such as Qtvcp's PushButton widget or IndicatedPushButton widget			
					
		The following user(s) said Thank You: CADdy 	
			Please Log in or Create an account to join the conversation.
- CADdy
 - 
				
											 - Offline
 - Premium Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 80
 - Thank you received: 6
 
			
	
						27 May 2025 09:20				#329207
		by CADdy
	
	
		
			
	
			
			 		
													
	
				Replied by CADdy on topic Indicators on Push Buttons			
			
				Thanks Chris, I thought that was a standalone widget. Thanks for the info.
Peter
					Peter
Please Log in or Create an account to join the conversation.
		Moderators: cmorley	
		Time to create page: 0.498 seconds