Couple of qtpyvcp questions

More
22 Aug 2019 17:57 #142865 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.

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

More
22 Aug 2019 23:04 #142886 by cmorley
Replied by cmorley on topic Couple of qtpyvcp questions
Are you talking qtpyvcp or qtvcp?

Chris

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

More
22 Aug 2019 23:28 #142895 by BigJohnT
Chris is qtvcp in master only or is it in 2.8? I don't see it in the documents for 2.8.

JT

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

More
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

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

More
22 Aug 2019 23:44 - 22 Aug 2019 23:45 #142902 by BigJohnT
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
Last edit: 22 Aug 2019 23:45 by BigJohnT.

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

More
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.

More
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

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

More
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.

More
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
The following user(s) said Thank You: persei8

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

More
23 Aug 2019 17:28 #142983 by cmorley
Replied by cmorley 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

Hey John when I visit this page:
linuxcnc.org/docs/
One can not select 2.8 docs.

Chris

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

Moderators: KCJLcvette
Time to create page: 0.084 seconds
Powered by Kunena Forum