Сustomization QTvcp

More
27 Nov 2021 08:44 #227748 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Ahh yes the python2 integer/float math problem
The following user(s) said Thank You: hottabich

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

More
04 Dec 2021 10:42 #228349 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Please tell me how to switch the mainTabWidgets page to qttouchy using PushButton on sim_panel. Thanks!

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

More
04 Dec 2021 16:08 #228365 by cmorley
Replied by cmorley on topic Сustomization QTvcp
I can think of two options.
adding HAL pins to each.
or using ZMQ messaging between them.
The following user(s) said Thank You: hottabich

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

More
05 Dec 2021 02:42 - 10 Dec 2021 11:12 #228376 by hottabich
Replied by hottabich on topic Сustomization QTvcp
ZMQ is difficult for me. With hal pin everything works. The following have been added to the handler:
self.pin_tab_manual_in = self.hal.newpin('tab-manual-in',hal.HAL_BIT, hal.HAL_IN)            self.pin_tab_manual_in.value_changed.connect(lambda s: self.tabManual(s))
And in general functions.
def tabManual(self, state):       
print state, self.current_mode       
if state:           
tab = self.w.mainTab.setCurrentIndex(TAB_Manual)

Thanks![justify]
[/justify]
Attachments:
Last edit: 10 Dec 2021 11:12 by hottabich.

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

More
10 Dec 2021 11:19 - 12 Dec 2021 02:47 #228789 by hottabich
Replied by hottabich on topic Сustomization QTvcp
The numstr.py on linuxcnc 2.8.2 file works well. On linuxcnc 2.9.0 pre. error. Please tell me how to fix this, if possible. Thanks!
Attachments:
Last edit: 12 Dec 2021 02:47 by hottabich.

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

More
10 Dec 2021 12:55 #228796 by cmorley
Replied by cmorley on topic Сustomization QTvcp
How are you loading the program?
It's being loaded with ython2 rather then python3
The following user(s) said Thank You: hottabich

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

More
10 Dec 2021 14:05 #228801 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Yes, it works for Python 2.7. I am trying to adapt woodpecker from python 2.7 to python 3 in linuxcnc 2.9.
Attachments:

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

More
10 Dec 2021 15:11 #228818 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Yes I understand.
How are you loading the numstr component in your HAL file?
The following user(s) said Thank You: hottabich

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

More
10 Dec 2021 15:24 - 10 Dec 2021 16:03 #228821 by hottabich
Replied by hottabich on topic Сustomization QTvcp
loadusr -Wn numstr python numstr.py
net line motion.program-line => numstr.in => woodpecker.line_number
And it is necessary
loadusr -Wn numstr python3 numstr.py
Not enough now
woodpecker.line_number
I will think. Thank you very much!
Everything worked out. Thanks again!
loadusr -Wn numstr python3 numstr.py
net line  => woodpecker.lcdnumber_2
Attachments:
Last edit: 10 Dec 2021 16:03 by hottabich.

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

More
11 Dec 2021 01:47 #228853 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Is it possible to apply segmentStyle (Flat) somehow for DroLabel? Thanks!

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

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