- Posts: 6803
- Thank you received: 0
Сustomization QTvcp
4 years 11 months ago #227748
by cmorley
Replied by cmorley on topic Сustomization QTvcp
Ahh yes the python2 integer/float math problem
Please Log in to join the conversation.
4 years 10 months ago #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 to join the conversation.
4 years 10 months ago #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.
Please Log in to join the conversation.
4 years 10 months ago #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]
Code:
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))
Code:
def tabManual(self, state):
print state, self.current_mode
if state:
tab = self.w.mainTab.setCurrentIndex(TAB_Manual)
Thanks![justify]
[/justify]
Please Log in to join the conversation.
4 years 10 months ago #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!
Please Log in to join the conversation.
4 years 10 months ago #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
Please Log in to join the conversation.
4 years 10 months ago #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 to join the conversation.
4 years 10 months ago #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?
Please Log in to join the conversation.
4 years 10 months ago #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!
Code:
loadusr -Wn numstr python3 numstr.py
net line => woodpecker.lcdnumber_2
Please Log in to join the conversation.
Time to create page: 0.252 seconds
