Сustomization QTvcp
27 Nov 2021 14: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.
04 Dec 2021 16: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.
04 Dec 2021 22: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.
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.
05 Dec 2021 08:42 - 10 Dec 2021 17: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:And in general functions.
Thanks![justify]
[/justify]
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))
def tabManual(self, state):
print state, self.current_mode
if state:
tab = self.w.mainTab.setCurrentIndex(TAB_Manual)
Thanks![justify]
[/justify]
Last edit: 10 Dec 2021 17:12 by hottabich.
Please Log in or Create an account to join the conversation.
10 Dec 2021 17:19 - 12 Dec 2021 08: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!
Last edit: 12 Dec 2021 08:47 by hottabich.
Please Log in or Create an account to join the conversation.
10 Dec 2021 18: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
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.
10 Dec 2021 20: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.
Please Log in or Create an account to join the conversation.
10 Dec 2021 21: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?
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.
10 Dec 2021 21:24 - 10 Dec 2021 22: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!
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
Last edit: 10 Dec 2021 22:03 by hottabich.
Please Log in or Create an account to join the conversation.
11 Dec 2021 07: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: 0.099 seconds