- Posts: 7368
- Thank you received: 2181
Сustomization QTvcp
- cmorley
- Offline
- Moderator
-
Less
More
6 years 6 months ago #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?
How did you cause it?
Please Log in or Create an account to join the conversation.
- hottabich
- Offline
- Platinum Member
-
Less
More
- Posts: 574
- Thank you received: 96
6 years 6 months ago #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.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
6 years 6 months ago #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):
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):
Code:
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.
- hottabich
- Offline
- Platinum Member
-
Less
More
- Posts: 574
- Thank you received: 96
6 years 6 months ago #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.
- hottabich
- Offline
- Platinum Member
-
Less
More
- Posts: 574
- Thank you received: 96
6 years 6 months ago #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.
Thank you for your hard work.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
6 years 6 months ago #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.
Moderators: cmorley
Time to create page: 0.774 seconds