Flexible GUI

More
1 year 8 months ago #321242 by JT
Replied by JT on topic Flexible GUI
You're not using a real time kernel, not sure if that matters for a sim, what does uname -a return?

Preview mode only shows you what the screen will look like, nothing functions in preview mode because no code is running.

index = int(parent.sender().property('index'))
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

Tells me that the value for index is not there.

Did you watch the videos?





JT

Please Log in to join the conversation.

More
1 year 8 months ago #321328 by Nserega.90
Replied by Nserega.90 on topic Flexible GUI
Hi JT I mostly only read your guide. I'll watch the video now and try it. Thank you.

Please Log in to join the conversation.

More
1 year 8 months ago #321553 by Nserega.90
Replied by Nserega.90 on topic Flexible GUI
Hello! Today I was working on a GUI and found what the problem was! Last time I didn't do it according to the instructions. I wrote Index with a capital letter, but it should have been with a small letter. It turns out that index is case sensitive. I did this today and it worked. This is much faster than typing commands manually. Thank you!

Please Log in to join the conversation.

More
1 year 8 months ago #321632 by Nserega.90
Replied by Nserega.90 on topic Flexible GUI
Hello! Have you tried loading icons or .png into the "Label"? I created resources.qrc and specified two folders, one for icons and the second for image.png. Everything is ok in the preview. But when compiling in linuxcnc the image is not displayed!

Please Log in to join the conversation.

More
1 year 8 months ago #321634 by Nserega.90
Replied by Nserega.90 on topic Flexible GUI

Hello! Have you tried loading icons or .png into the "Label"? I created resources.qrc and specified two folders, one for icons and the second for image.png. Everything is ok in the preview. But when compiling in linuxcnc the image is not displayed!
 
 
 
When selecting an image, I didn’t choose resource, but indicated the path to the file,and everything was ok!!!!
!!!!

Please Log in to join the conversation.

More
1 year 8 months ago #321636 by JT
Replied by JT on topic Flexible GUI

Hello! Have you tried loading icons or .png into the "Label"? I created resources.qrc and specified two folders, one for icons and the second for image.png. Everything is ok in the preview. But when compiling in linuxcnc the image is not displayed!
 
Did you use the Flex Resource builder?
gnipsel.com/linuxcnc/flexgui/resources.html

And add the resource to the ini file?
gnipsel.com/linuxcnc/flexgui/ini.html#resource-file

And did you watch the video?


JT

Please Log in to join the conversation.

More
1 year 8 months ago #321687 by Nserega.90
Replied by Nserega.90 on topic Flexible GUI
yes everything worked out! Thank you!

Please Log in to join the conversation.

More
1 year 8 months ago #321738 by Nserega.90
Replied by Nserega.90 on topic Flexible GUI
John, tell me! Is it possible to somehow use buttons with the same functions on different forms? It’s just that when you create a button, for example, E-stop (its name is in objectName:estop_pb), when you create the same button on another form/page, its name will become objectName:estop_pb_2 and its function will not work

Please Log in to join the conversation.

More
1 year 8 months ago #321761 by JT
Replied by JT on topic Flexible GUI
No it's not possible to make a copy of controls. What you can do for things like power and E Stop is to have them on the main part of the QMainWindow so it's always visible.

You can see in this sample that the top frame that contains the estop, power, run and quit buttons is always visible no matter what tab you select because they are in the tool bar. Also the DRO and Information box are always visible in this example. It does have duplicate run buttons as it's an example and the upper ones are menu items so they can also be in the tool bar.

Attachment not found



JT

Please Log in to join the conversation.

More
1 year 8 months ago #321762 by JT
Replied by JT on topic Flexible GUI




JT

Please Log in to join the conversation.

Time to create page: 0.263 seconds
Powered by Kunena Forum