Flexible GUI
- rodw
 - 
				
											 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 11472
 - Thank you received: 3848
 
			
	
						20 Jan 2025 02:49				#319435
		by rodw
	
	
		
			
	
			
			 		
													
	
				Replied by rodw on topic Flexible GUI			
			
				Try halui.axis.selected u32 out  - selected axis (by index: 0:x 1:y 2:z 3:a 4:b 5:cr 6:u 7:v 8:w)			
					Please Log in or Create an account to join the conversation.
- blazini36
 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 972
 - Thank you received: 167
 
			
	
						20 Jan 2025 06:44				#319444
		by blazini36
	
	
		
			
				
What I mentioned was based on the Flex Label with a bit input that was just added, could add multiple bit inputs but now that I think about it that probably wouldn't go well if multiple bits were true. So yeah, it could use an S32/U32 input and that would probably solve that issue but there's still no way of displaying different text based on the value of the input other than just to display the value itself.
Something like this could work, it currently doesn't:
 
			
					
	
	
		
	
			 		
													
	
				Replied by blazini36 on topic Flexible GUI			
			That's a hal pin, that doesn't have anything to do with how Flex GUI would handle displaying the value of the HAL pin.Try halui.axis.selected u32 out - selected axis (by index: 0:x 1:y 2:z 3:a 4:b 5:cr 6:u 7:v 8:w)
What I mentioned was based on the Flex Label with a bit input that was just added, could add multiple bit inputs but now that I think about it that probably wouldn't go well if multiple bits were true. So yeah, it could use an S32/U32 input and that would probably solve that issue but there's still no way of displaying different text based on the value of the input other than just to display the value itself.
Something like this could work, it currently doesn't:
Attachments:
		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
 
			
	
						20 Jan 2025 12:39				#319454
		by JT
	
	
		
			
	
	
			 		
													
	
				Replied by JT on topic Flexible GUI			
			
				I don't see any reason that can't be done in Flex... give me a few minutes to code that up.
JT
					JT
		The following user(s) said Thank You: blazini36 	
			Please Log in or Create an account to join the conversation.
- blazini36
 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 972
 - Thank you received: 167
 
			
	
						20 Jan 2025 12:48				#319456
		by blazini36
	
	
		
			
	
	
			 		
													
	
				Replied by blazini36 on topic Flexible GUI			
			
				My GUI might be ugly, but at least I'm giving Flex a workout lol			
					
		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
 
			
	
						20 Jan 2025 14:06				#319460
		by JT
	
	
		
			
				
And here you go Flex GUI Multi-State HAL labels!
gnipsel.com/linuxcnc/flexgui/hal.html#multi-state-label
JT
					
	
			
			 		
													
	
				Replied by JT on topic Flexible GUI			
			I like it!My GUI might be ugly, but at least I'm giving Flex a workout lol
And here you go Flex GUI Multi-State HAL labels!
gnipsel.com/linuxcnc/flexgui/hal.html#multi-state-label
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
 
			
	
						20 Jan 2025 14:09		 -  20 Jan 2025 14:11		#319461
		by JT
	
	
		
			
				
Now it does
 and BTW it only uses U32. Oh and the function is hal_msl instead of hal_pin.
JT
					
	
	
			 		
													
	
				Replied by JT on topic Flexible GUI			
			What I mentioned was based on the Flex Label with a bit input that was just added, could add multiple bit inputs but now that I think about it that probably wouldn't go well if multiple bits were true. So yeah, it could use an S32/U32 input and that would probably solve that issue but there's still no way of displaying different text based on the value of the input other than just to display the value itself.
Something like this could work, it currently doesn't:
Now it does
JT
		Last edit: 20 Jan 2025 14:11  by 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
 
			
	
						20 Jan 2025 14:14				#319462
		by JT
	
	
		
			
	
	
		
			
			 		
													
	
				Replied by JT on topic Flexible GUI			
			
					Attachments:
Please Log in or Create an account to join the conversation.
- chrisfischer
 - Offline
 - Senior Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 44
 - Thank you received: 10
 
			
	
						22 Jan 2025 06:19				#319621
		by chrisfischer
	
	
		
			
	
			
			 		
													
	
				Replied by chrisfischer on topic Flexible GUI			
			
				I really like the philosophy and progress of this project!
I've never used PyQt6 so forgive my ignorance, would it be possible to map these controls on top of an image? Ive always wanted to render up an interesting backdrop in cad and add controls on top.
					I've never used PyQt6 so forgive my ignorance, would it be possible to map these controls on top of an image? Ive always wanted to render up an interesting backdrop in cad and add controls on top.
Please Log in or Create an account to join the conversation.
- blazini36
 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 972
 - Thank you received: 167
 
			
	
						22 Jan 2025 12:09				#319630
		by blazini36
	
	
		
			
	
			
			 		
													
	
				Replied by blazini36 on topic Flexible GUI			
			
				Didn't get a chance to update and try the label yet as I'm working on the hal file at the moment. Couple of things I'm noticing now that I'm running some sims......
Since I added a qss, INPUT = TOUCH seems to not have an effect anymore. Pretty sure I had the touch style file browser before the qss but now it is back to the normal one.
The file browser is a little hard to navigate because it doesn't show the current directory, easy to get lost. Any chance you can add current directory at the top or something?
The flood and mist push buttons disable when a program is running. I'm used to Gmoccapy where you can still operate the mist and flood while running a program. Sometimes I forget to add coolant to the program and need to turn it on when it's running. Not quite sure why yet but as soon as the GUI disables coolant even if I stop the program I can't control it again with the hal buttons until I first turn it on with the GUI buttons.
					Since I added a qss, INPUT = TOUCH seems to not have an effect anymore. Pretty sure I had the touch style file browser before the qss but now it is back to the normal one.
The file browser is a little hard to navigate because it doesn't show the current directory, easy to get lost. Any chance you can add current directory at the top or something?
The flood and mist push buttons disable when a program is running. I'm used to Gmoccapy where you can still operate the mist and flood while running a program. Sometimes I forget to add coolant to the program and need to turn it on when it's running. Not quite sure why yet but as soon as the GUI disables coolant even if I stop the program I can't control it again with the hal buttons until I first turn it on with the GUI buttons.
Please Log in or Create an account to join the conversation.
- JT
 - 
				
									Topic Author
											 - Away
 - Administrator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 1033
 - Thank you received: 536
 
			
	
						22 Jan 2025 13:23				#319634
		by JT
	
	
		
			
				
Which file browser, the keyboard or the touch screen?
Good point on the flood and mist and I see no reason to disable them at any time and that has been fixed.
JT
					
	
			
			 		
													
	
				Replied by JT on topic Flexible GUI			
			The ini entry INPUT is now THEME gnipsel.com/linuxcnc/flexgui/ini.html#themesDidn't get a chance to update and try the label yet as I'm working on the hal file at the moment. Couple of things I'm noticing now that I'm running some sims......
Since I added a qss, INPUT = TOUCH seems to not have an effect anymore. Pretty sure I had the touch style file browser before the qss but now it is back to the normal one.
The file browser is a little hard to navigate because it doesn't show the current directory, easy to get lost. Any chance you can add current directory at the top or something?
The flood and mist push buttons disable when a program is running. I'm used to Gmoccapy where you can still operate the mist and flood while running a program. Sometimes I forget to add coolant to the program and need to turn it on when it's running. Not quite sure why yet but as soon as the GUI disables coolant even if I stop the program I can't control it again with the hal buttons until I first turn it on with the GUI buttons.
Which file browser, the keyboard or the touch screen?
Good point on the flood and mist and I see no reason to disable them at any time and that has been fixed.
JT
Please Log in or Create an account to join the conversation.
		Time to create page: 0.316 seconds