Couple of qtpyvcp questions
22 Aug 2019 17:57 #142865
by persei8
Couple of qtpyvcp questions was created by persei8
First, should there be a whole new main category under "User Interfaces" called QTPYVCP instead of it being covered in "Other User Interfaces"?
Second, if I want to do some periodic stuff in a qtpyvcp based gui, do I use the gobject.timeout_add(time, handler) template or is there a new/preferred way to do it? This is the last thing holding me up in my silverdragon conversion to qt. Thank you.
Second, if I want to do some periodic stuff in a qtpyvcp based gui, do I use the gobject.timeout_add(time, handler) template or is there a new/preferred way to do it? This is the last thing holding me up in my silverdragon conversion to qt. Thank you.
Please Log in or Create an account to join the conversation.
22 Aug 2019 23:04 #142886
by cmorley
Replied by cmorley on topic Couple of qtpyvcp questions
Are you talking qtpyvcp or qtvcp?
Chris
Chris
Please Log in or Create an account to join the conversation.
22 Aug 2019 23:28 #142895
by BigJohnT
Replied by BigJohnT on topic Couple of qtpyvcp questions
Chris is qtvcp in master only or is it in 2.8? I don't see it in the documents for 2.8.
JT
JT
Please Log in or Create an account to join the conversation.
22 Aug 2019 23:33 #142896
by cmorley
Replied by cmorley on topic Couple of qtpyvcp questions
it's in 2.8. Are there online docs for 2.8?
Chris
Chris
Please Log in or Create an account to join the conversation.
22 Aug 2019 23:44 - 22 Aug 2019 23:45 #142902
by BigJohnT
Replied by BigJohnT on topic Couple of qtpyvcp questions
Yes linuxcnc.org/docs/2.8/html/
Oh I see it now, I was looking in user interfaces for it not virtual control panels. It is a user interface right?
JT
Oh I see it now, I was looking in user interfaces for it not virtual control panels. It is a user interface right?
JT
Last edit: 22 Aug 2019 23:45 by BigJohnT.
Please Log in or Create an account to join the conversation.
22 Aug 2019 23:47 #142904
by persei8
Replied by persei8 on topic Couple of qtpyvcp questions
Qtpyvcp (I think) The one for full custom GUIs. In order to implement a program progress bar, I need to periodically get the currently executing line number of the gcode file. If it's in the documentation, I will check again.
Please Log in or Create an account to join the conversation.
22 Aug 2019 23:50 #142905
by cmorley
Replied by cmorley on topic Couple of qtpyvcp questions
is it included with linuxcnc or a separate program?
Chris M
Chris M
Please Log in or Create an account to join the conversation.
23 Aug 2019 00:42 #142909
by persei8
Replied by persei8 on topic Couple of qtpyvcp questions
I don't know. It is now obvious I don't understand as much as I thought so it's back to the drawing board. Am I at least correct in thinking that qtvcp is analagous to gscreen?
Please Log in or Create an account to join the conversation.
23 Aug 2019 04:21 #142917
by cmorley
Replied by cmorley on topic Couple of qtpyvcp questions
Yes it's unfortunate there is a qtvcp include with linuxcnc's source and there is a qtpyvcp that is a separate project ( to be used with linuxcnc)
Qtvcp is analogous to gscreen - it uses similar ideas (on purpose).
To answer your question in Qtvcp:
STATUS.connect('periodic',self.periodic_update)
Will call a function named:
def periodic_update(self,w):
every 100ms.
But for a progress bar of % completed lines there is another way:
There is a signal send from the gcode editor called percentDone that can be connected to a progrssBars setValue slot using the Designer signal/slot editor.
The blender example uses this technique.
Chris M
Qtvcp is analogous to gscreen - it uses similar ideas (on purpose).
To answer your question in Qtvcp:
STATUS.connect('periodic',self.periodic_update)
Will call a function named:
def periodic_update(self,w):
every 100ms.
But for a progress bar of % completed lines there is another way:
There is a signal send from the gcode editor called percentDone that can be connected to a progrssBars setValue slot using the Designer signal/slot editor.
The blender example uses this technique.
Chris M
The following user(s) said Thank You: persei8
Please Log in or Create an account to join the conversation.
23 Aug 2019 17:28 #142983
by cmorley
linuxcnc.org/docs/
One can not select 2.8 docs.
Chris
Replied by cmorley on topic Couple of qtpyvcp questions
Hey John when I visit this page:Yes linuxcnc.org/docs/2.8/html/
Oh I see it now, I was looking in user interfaces for it not virtual control panels. It is a user interface right?
JT
linuxcnc.org/docs/
One can not select 2.8 docs.
Chris
Please Log in or Create an account to join the conversation.
Time to create page: 0.080 seconds