Сustomization QTvcp

More
18 Apr 2020 05:30 - 18 Apr 2020 05:30 #164407 by hottabich
Replied by hottabich on topic Сustomization QTvcp
At the start of qtdragon. This is not a mistake; this is a warning, isn’t it.
Attachments:
Last edit: 18 Apr 2020 05:30 by hottabich.

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

More
18 Apr 2020 05:37 #164409 by hottabich
Replied by hottabich on topic Сustomization QTvcp

ahh did you move or did it ask to move the QtTouchy config?
It can't find the file: ../check_constraints.hal file

It' s in the sim/qtvcp_screens folder by default

You mentioned the widget, I realized that this applies to
qtdragon.

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

More
18 Apr 2020 05:37 #164410 by cmorley
Replied by cmorley on topic Сustomization QTvcp
It's a error because qtdragon tried to do something that it cannot do.
How did you cause it?

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

More
18 Apr 2020 05:48 #164411 by hottabich
Replied by hottabich on topic Сustomization QTvcp
I registered self.w.mditouchy.run_command () in qtdragon_handler. Section init_widgets (self):

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

More
18 Apr 2020 05:55 #164412 by cmorley
Replied by cmorley on topic Сustomization QTvcp
yes no good.
you must call self.w.mditouchy.run_command () only when the MDI command is to be run.

To make the cycle start button run MDI, Try this (I didn't test it):
    def btn_start_clicked(self):
        if STATUS.is_mdi_mode():
            self.w.mditouchy.run_command()
            return
        if self.w.main_tab_widget.currentIndex() != 0:
            return
        if not STATUS.is_auto_mode():
            self.add_alarm("Must be in AUTO mode to run a program")
            return
        self.w.btn_start.setProperty('running', True)
        self.w.btn_start.setStyle(self.w.btn_start.style())
        start_line = int(self.w.lbl_start_line.text().encode('utf-8'))
        self.add_alarm("Started program from line {}".format(start_line))
        ACTION.RUN(start_line)
The following user(s) said Thank You: hottabich

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

More
18 Apr 2020 06:23 #164415 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Thanks It works!! I’ll check in more detail later. Unsubscribe if something is wrong. Thanks again!!!
The following user(s) said Thank You: cmorley

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

More
19 Apr 2020 05:23 #164585 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Hello! Checked the work of MDITouchy widgets. All is well. I can not only implement the Macro tab. How does it work, tell me please.
Thank you for your hard work.

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

More
19 Apr 2020 05:27 #164588 by cmorley
Replied by cmorley on topic Сustomization QTvcp
What is the problem with macro tabs - I thought that was working already.

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

More
19 Apr 2020 05:38 #164592 by hottabich
Replied by hottabich on topic Сustomization QTvcp
The macro tab works perfectly. I cannot implement the Macro tab in MDI Touchy.
UTB is not necessary for me. I just check the operation of the widget.

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

More
19 Apr 2020 05:46 #164593 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Oh yes i understand now!
I forgot about macros on the touchyMDI and never finished it!

Chris

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

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