Preference File

More
6 years 5 months ago #168506 by hottabich
Replied by hottabich on topic Preference File
Installation error pip install pyQtWebKit: jura@debian:~$ sudo pip install pyQtWebKit
[sudo] пароль для jura:
Collecting pyQtWebKit
Could not find a version that satisfies the requirement pyQtWebKit (from versions: )
No matching distribution found for pyQtWebKit
jura@debian:~$

Please Log in to join the conversation.

More
6 years 5 months ago #168507 by persei8
Replied by persei8 on topic Preference File
Try this:
sudo apt-get install libqt5webkit5

Please Log in to join the conversation.

More
6 years 5 months ago #168509 by hottabich
Replied by hottabich on topic Preference File
It has already been installed. QtDragon-master should open as an interface? In Qtpyvcp html opens in a separate tab, but as in QtDragon?

Please Log in to join the conversation.

More
6 years 5 months ago #168513 by persei8
Replied by persei8 on topic Preference File
OK, how it works in qtdragon is open the FILE page, select an HTML file and then click LOAD FILE. This will automatically open the SETUP page. The source code of how it's all done is in the github repo previously referenced.
Jim

Please Log in to join the conversation.

More
6 years 5 months ago #168514 by hottabich
Replied by hottabich on topic Preference File
Thank you so much, I will study!

Please Log in to join the conversation.

More
6 years 5 months ago #168599 by hottabich
Replied by hottabich on topic Preference File
With html all ok! Help please connect Run Time. I can not get signal how in
QtDragon master.

Please Log in to join the conversation.

More
6 years 5 months ago #168609 by persei8
Replied by persei8 on topic Preference File
In your postgui hal file, you need:

loadrt time
addf time.0 servo-thread

then connect the signals:
#program runtime
net runtime time.0.start <= halui.program.is-running
net pausetime time.0.pause <= halui.program.is-paused
net runtime_sec qtdragon.runtime_sec <= time.0.seconds
net runtime_min qtdragon.runtime_min <= time.0.minutes
net runtime_hrs qtdragon.runtime_hrs <= time.0.hours

Please Log in to join the conversation.

More
6 years 5 months ago #168691 by hottabich
Replied by hottabich on topic Preference File
I did this and got an error. Start and pause have been already linked to start led and pause led. With your help, I understood, fixed it and now everything works. Thank you and my respect to you!

Please Log in to join the conversation.

More
6 years 5 months ago #168726 by cmorley
Replied by cmorley on topic Preference File

persei8 wrote: In your postgui hal file, you need:

loadrt time
addf time.0 servo-thread

then connect the signals:
#program runtime
net runtime time.0.start <= halui.program.is-running
net pausetime time.0.pause <= halui.program.is-paused
net runtime_sec qtdragon.runtime_sec <= time.0.seconds
net runtime_min qtdragon.runtime_min <= time.0.minutes
net runtime_hrs qtdragon.runtime_hrs <= time.0.hours


I think this is something you should consider programming into the handler file rather then make users connect HAL pins for.
using STATUS to catch running and pausing and STATUS update to cause the time display widget to update.

Please Log in to join the conversation.

More
6 years 5 months ago #168753 by persei8
Replied by persei8 on topic Preference File
I guess I can't see the forest for the trees. By 'time display widget' do you mean the timestamp statuslabel? I already have one for displaying the clock. What is the exact signal name for STATUS update? There's no such thing as :
STATUS.connect('update', etc)

Please Log in to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum