??? how to load a custom gui file ???

More
03 Oct 2021 14:15 #222106 by Roguish
thanks again for the replies.

my recommendation is to keep the filing and directory structure as absolutely simple, and obvious, as possible.

do the images get compiled into a resource file?

a primary config directory with the .ini, .hal(s), .pref and a subdirectory with all the custimizations, like .ui, .css, etc....and the images subdirectory if necessary

only a guess right now....
we'll keep at it.

Noel

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

More
06 Oct 2021 17:05 #222381 by Roguish
Well, got it sort of working.
and now trying a little customization.
I know lots can be done with the .qss file.

I would like to increase the diameter of the 'spindle at speed' led.
object name: led_at_speed
class: LED

I did find the led_widget.py file, so I can see what is possible to modify.
Just don't know exactly how to get started adding to the .qss file

Little help please? maybe best a short example.

thanks.

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

More
06 Oct 2021 20:43 #222401 by hottabich

Well, got it sort of working.
and now trying a little customization.
I know lots can be done with the .qss file.

I would like to increase the diameter of the 'spindle at speed' led.
object name: led_at_speed
class: LED

I did find the led_widget.py file, so I can see what is possible to modify.
Just don't know exactly how to get started adding to the .qss file

Little help please? maybe best a short example.

thanks.
 

And so?
Attachments:
The following user(s) said Thank You: Roguish

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

More
06 Oct 2021 20:46 #222402 by Roguish
thanks. yeah, that works.
but there has to be a way to do it in the .qss, or .css files......
That's what I'm looking for...

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

More
07 Oct 2021 00:48 - 07 Oct 2021 00:49 #222416 by cmorley
To size a specific LED - use the widget name specified in designer with '#'
ie in qtdragon:
#led_at_speed {
    QProperty-diameter:20;
}
Last edit: 07 Oct 2021 00:49 by cmorley.
The following user(s) said Thank You: Roguish

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

More
07 Oct 2021 14:20 - 07 Oct 2021 19:12 #222456 by Roguish
Chris, that's what I was looking for. thanks.
so, which file exactly is best to work with?

GOT IT.
Last edit: 07 Oct 2021 19:12 by Roguish.

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

More
07 Oct 2021 20:01 #222478 by Roguish
Ok, another question.
I've looked all the docs I can find regarding qtvcp.
Where does the gui actually get the linuxcnc realtime data?

like for the current position...
I see there is hal_glib.py

def get_position(self):
p = self.stat.actual_position
mp = self.stat.position
dtg = self.stat.dtg

Principle question is what running info is available?

I really like to see joint, or axis, following error in my DRO. I know it's odd.
If following error is not available, can it be made available.

trying to learn how all this is put together.

FYI. following error is available in QtPyVCP

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

More
08 Oct 2021 01:35 #222508 by cmorley
Qtvcp usesthe hal_glib library (aka GStat aka STATUS) to get linuxcnc's status.
linuxcnc.org/docs/devel/html/gui/GStat.html
It uses the linuxcnc python module to communicate with linuxcnc.
linuxcnc.org/docs/devel/html/config/python-interface.html

Following error is not available directly from linuxcnc's status.
It could be calculated from joint_actual_position and joint_position I supposed.
You could of course create HAL pins to connect the joint.N.f-error HAL pins to the GUI.
Or you could also read the joint.N.f-error HAL pins directly and display them.

Chris

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

More
08 Oct 2021 02:27 #222512 by Roguish
Chris,
thanks.
so, I see ' ferror_current ' in the joint dictionary.
shouldn't that come through somehow? inherited?

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

More
08 Oct 2021 02:35 #222514 by cmorley
Ahh yes - I missed that.
It is not watched by the hal_glib library currently.

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

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