Сustomization QTvcp

More
19 Apr 2020 05:57 - 19 Apr 2020 05:59 #164594 by hottabich
Replied by hottabich on topic Сustomization QTvcp
There is an interesting question. I added Plot to the Probe page. Why are two GcodeGraphics conflicting? And is there a possibility to add a button in Qtvcp
ProbeSim?
Attachments:
Last edit: 19 Apr 2020 05:59 by hottabich.

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

More
19 Apr 2020 06:07 #164595 by cmorley
Replied by cmorley on topic Сustomization QTvcp
plotting uses a fair amount of process power. There is a special widget to move other widgets from place to place. QtDefault demonstrates this with the 'big view' button. it cycles the display by moving widgets around.
This might be better way to do it - its a little complicated. I'll have to refresh my memory on the widget.

I have not tried two plotters so I don't know what the problem is.

add a button for what?
The following user(s) said Thank You: hottabich

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

More
19 Apr 2020 06:17 - 19 Apr 2020 06:26 #164597 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Launch my interface and switch the visualization p, x, y, z and also move
picture in the window. Everything is necessary for checking Probe in simulator. ProbeSim mimics
(probe in). (QtDefault demonstrates this with the 'big view' button. it cycles the display by moving widgets around.)
If so make it super!
Attachments:
Last edit: 19 Apr 2020 06:26 by hottabich.

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

More
19 Apr 2020 06:55 #164602 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Get a button to call this function when pressed and released.
    def SimProbeButton(self, state):
        if state:
            hal.set_P('motion.probe-input','1')
        else:
            hal.set_P('motion.probe-input','o')
The following user(s) said Thank You: hottabich

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

More
19 Apr 2020 08:11 #164606 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Here is proof of concept.
I modified qtdragon.ui and qtdragon_handler.py

When you switch tabs it automatically moves the plotter to the right spot by calling the function switch()
The special widget is called widgetswitcher.
Attachments:
The following user(s) said Thank You: hottabich

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

More
19 Apr 2020 08:17 #164608 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Thank you very much!!! You are the best !!

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

More
20 Apr 2020 06:22 - 20 Apr 2020 10:13 #164774 by hottabich
Replied by hottabich on topic Сustomization QTvcp

Get a button to call this function when pressed and released.
    def SimProbeButton(self, state):
        if state:
            hal.set_P('motion.probe-input','1')
        else:
            hal.set_P('motion.probe-input','o')

Created the btn_probesim button in qtdragon_postgui.hal added (net qtdragon.btn.0.probesim => motion.probe-input). Motion.probe-input does not work, qtdragon.btn_probesim works. Please tell me what's wrong? Excuse for troubling. The question is closed. Everything is working. In qtdragon_postgui.hal added
(net btn_probesim motion.probe-input qtdragon.btn_probesim).
Attachments:
Last edit: 20 Apr 2020 10:13 by hottabich.

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

More
20 Apr 2020 17:18 #164874 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Ok if you use your solution then you don't need the'SimProbeButton' function I posted

Your probe tab looks good!

Chris
The following user(s) said Thank You: hottabich

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

More
21 Apr 2020 12:13 - 22 Apr 2020 07:41 #164950 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Hello Chris! I resized qtdragon to 1900x1000, which turned out to be an interesting option for
fullHD monitor owner. I want to add widgetswitcher to the Status page, but it will be the second in the interface. I could not get. Is it real or impossible?
Attachments:
Last edit: 22 Apr 2020 07:41 by hottabich.
The following user(s) said Thank You: tommylight

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

More
22 Apr 2020 03:59 #165040 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Should be possible. I'm working out of town for a few days...so cant help at the moment.
The following user(s) said Thank You: tommylight, hottabich

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

Moderators: cmorley
Time to create page: 0.096 seconds
Powered by Kunena Forum