Gscreen - a GTK / Glade / Python based screen

More
19 Dec 2018 23:31 - 19 Dec 2018 23:32 #122619 by cmorley
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
Last edit: 19 Dec 2018 23:32 by cmorley.

Please Log in or Create an account to join the conversation.

More
20 Jan 2019 17:40 #124483 by Ivan_The_Red
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.

More
21 Jan 2019 02:24 #124503 by cmorley
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

Please Log in or Create an account to join the conversation.

More
21 Jan 2019 02:27 #124505 by cmorley
I should mention there is a separate PyQtVCP project too.

Chris M

Please Log in or Create an account to join the conversation.

More
21 Jan 2019 13:55 #124536 by Ivan_The_Red
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?

Please Log in or Create an account to join the conversation.

More
21 Jan 2019 22:11 #124571 by cmorley
Unfortunately no. QTvcp is not compatible.

Chris M

Please Log in or Create an account to join the conversation.

Time to create page: 0.122 seconds
Powered by Kunena Forum