Flexible GUI

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
11 Feb 2025 15:54 #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 or Create an account to join the conversation.

More
12 Feb 2025 07:05 #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 or Create an account to join the conversation.

More
14 Feb 2025 15:08 - 14 Feb 2025 15:14 #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!
Last edit: 14 Feb 2025 15:14 by Nserega.90.
The following user(s) said Thank You: JT

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

More
15 Feb 2025 13:34 #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 or Create an account to join the conversation.

More
15 Feb 2025 13:49 - 15 Feb 2025 13:52 #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!!!!
!!!!
Last edit: 15 Feb 2025 13:52 by Nserega.90.

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

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
15 Feb 2025 13:58 #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
The following user(s) said Thank You: Nserega.90

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

More
16 Feb 2025 07:25 #321687 by Nserega.90
Replied by Nserega.90 on topic Flexible GUI
yes everything worked out! Thank you!
The following user(s) said Thank You: JT

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

More
16 Feb 2025 13:48 #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 or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
16 Feb 2025 19:34 #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.


JT
Attachments:
The following user(s) said Thank You: Nserega.90

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

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
16 Feb 2025 19:36 - 16 Feb 2025 19:37 #321762 by JT
Replied by JT on topic Flexible GUI




JT
Last edit: 16 Feb 2025 19:37 by JT.
The following user(s) said Thank You: tommylight

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

Time to create page: 0.102 seconds
Powered by Kunena Forum