Gscreen - a GTK / Glade / Python based screen
- cmorley
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 7230
- Thank you received: 2106
			
	
						19 Dec 2018 23:31		 -  19 Dec 2018 23:32		#122619
		by cmorley
	
	
		
			
	
	
			 		
													
	
				Replied by cmorley on topic Gscreen - a GTK / Glade / Python based screen			
			
				initialize_widgets()  is where to put initialization code.
status,command and error can be accessed by initializing an instance of them in the __INIT__() function with:
self.command = linuxcnc.command()
self.status = linuxcnc.stat()
self.error = linuxcnc.error_channel()
It's probably available through some other code but that is surely the easiest to work with.
In some cases using GSTAT is a better way to go.
GSTAT monitors some key status and will tell you when they change.
linuxcnc.org/docs/devel/html/gui/GStat.html
Chris M
					status,command and error can be accessed by initializing an instance of them in the __INIT__() function with:
self.command = linuxcnc.command()
self.status = linuxcnc.stat()
self.error = linuxcnc.error_channel()
It's probably available through some other code but that is surely the easiest to work with.
In some cases using GSTAT is a better way to go.
GSTAT monitors some key status and will tell you when they change.
linuxcnc.org/docs/devel/html/gui/GStat.html
Chris M
		Last edit: 19 Dec 2018 23:32  by cmorley.			
			Please Log in or Create an account to join the conversation.
- Ivan_The_Red
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 83
- Thank you received: 2
			
	
						20 Jan 2019 17:40				#124483
		by Ivan_The_Red
	
	
		
			
	
			
			 		
													
	
				Replied by Ivan_The_Red on topic Gscreen - a GTK / Glade / Python based screen			
			
				Is Gscreen being phased out ? If it is ,what avenues are there to upgrade or convert an existing Gscreen user interface.			
					Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 7230
- Thank you received: 2106
			
	
						21 Jan 2019 02:24				#124503
		by cmorley
	
	
		
			
	
			
			 		
													
	
				Replied by cmorley on topic Gscreen - a GTK / Glade / Python based screen			
			
				There is no immediate plan to phase out Gscreen.
I just gets harder to get the editor to work on newer distributions to modify it.
I heard rumors of python2 support coming to an end in the future but i bet that will still take awhile.
I hope in time to update Gscreen and Gladevcp for gtk3 and python3 but that would be in long time from now (if ever)
QTvcp is the the next in-tree project for machine control in linuxcnc.
Chris M
					I just gets harder to get the editor to work on newer distributions to modify it.
I heard rumors of python2 support coming to an end in the future but i bet that will still take awhile.
I hope in time to update Gscreen and Gladevcp for gtk3 and python3 but that would be in long time from now (if ever)
QTvcp is the the next in-tree project for machine control in linuxcnc.
Chris M
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 7230
- Thank you received: 2106
			
	
						21 Jan 2019 02:27				#124505
		by cmorley
	
	
		
			
	
			
			 		
													
	
				Replied by cmorley on topic Gscreen - a GTK / Glade / Python based screen			
			
				I should mention there is a separate PyQtVCP project too.
Chris M
					Chris M
Please Log in or Create an account to join the conversation.
- Ivan_The_Red
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 83
- Thank you received: 2
			
	
						21 Jan 2019 13:55				#124536
		by Ivan_The_Red
	
	
		
			
	
			
			 		
													
	
				Replied by Ivan_The_Red on topic Gscreen - a GTK / Glade / Python based screen			
			
				Thanks Chris,
Can I open my current Gscreen glade file using the newer QTvcp software and make changes to it or would I need to start all over again?
					Can I open my current Gscreen glade file using the newer QTvcp software and make changes to it or would I need to start all over again?
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 7230
- Thank you received: 2106
			
	
						21 Jan 2019 22:11				#124571
		by cmorley
	
	
		
			
	
			
			 		
													
	
				Replied by cmorley on topic Gscreen - a GTK / Glade / Python based screen			
			
				Unfortunately no. QTvcp is not compatible.
Chris M
					Chris M
Please Log in or Create an account to join the conversation.
		Time to create page: 0.199 seconds	
