Flexible GUI
- Nserega.90
- Offline
- Junior Member
-
Less
More
- Posts: 20
- Thank you received: 3
17 Feb 2025 06:33 #321802
by Nserega.90
Replied by Nserega.90 on topic Flexible GUI
Thanks John, that's what I thought. Yes, I noticed that the top menu items are the same on all tabs. That’s why I decided to ask you, since I wasn’t completely sure myself))))
Please Log in or Create an account to join the conversation.
- Nserega.90
- Offline
- Junior Member
-
Less
More
- Posts: 20
- Thank you received: 3
22 Feb 2025 10:35 - 22 Feb 2025 11:10 #322266
by Nserega.90
Replied by Nserega.90 on topic Flexible GUI
Hi John! Need your help! I ran into a problem: in the style sheet I made a style for buttons, I showed it in the video. That is, in the style there are different settings, but the main one is using an image as a button background! So I do absolutely the same thing for other buttons, that is, I apply the same style to other buttons and it does not work, or rather it works, but not quite correctly: in the video you can see that the button is not displayed. And when you hover over it, it applies the :hover and :pressed style, but the button inactivity style is not applied)))) what could be wrong? I attached the archive!
Last edit: 22 Feb 2025 11:10 by Nserega.90.
Please Log in or Create an account to join the conversation.
- JT
-
Topic Author
- Away
- Administrator
-
Less
More
- Posts: 950
- Thank you received: 491
22 Feb 2025 17:20 #322280
by JT
Replied by JT on topic Flexible GUI
I don't see a .qss file in there so can't tell what's wrong. Oh I see you used the mainwindow stylesheet which I never do. It's probably a typo somewhere in your stylesheet.
I se a .qss file and add it to the ini file as per the manual. Take a look at some of the example stylesheets. I use the Flex QSS program to generate stylesheets.
For some reason unknown to me I can't view your files.
JT
I se a .qss file and add it to the ini file as per the manual. Take a look at some of the example stylesheets. I use the Flex QSS program to generate stylesheets.
For some reason unknown to me I can't view your files.
JT
The following user(s) said Thank You: Nserega.90
Please Log in or Create an account to join the conversation.
- JT
-
Topic Author
- Away
- Administrator
-
Less
More
- Posts: 950
- Thank you received: 491
22 Feb 2025 17:23 #322281
by JT
Replied by JT on topic Flexible GUI
Ok the files just opened for me, I see you have a resource defined in the mainwindow, not sure if that interferes with Flex resource or not I don't use that.
I use the Flex Resource builder to create my resource files.
JT
I use the Flex Resource builder to create my resource files.
JT
The following user(s) said Thank You: Nserega.90
Please Log in or Create an account to join the conversation.
- JT
-
Topic Author
- Away
- Administrator
-
Less
More
- Posts: 950
- Thank you received: 491
22 Feb 2025 17:47 #322284
by JT
Replied by JT on topic Flexible GUI
Just did a test and if you have an image as the background image then color does nothing. Background color does change when you apply different colors to different states.
JT
QPushButton {
min-height: 80px;
min-width: 80px;
margin: 2px;
background-position: center;
background-origin: content;
background-clip: padding;
background-repeat: no-repeat;
background-image: url(:up_arrow.png);
background-color: #0000ff;
}
QPushButton:hover {
background-color: #aaff7f;
}
QPushButton:pressed {
background-color: #ff0000;
}
QPushButton:disabled {
background-color: #2c2c2c;
}
JT
The following user(s) said Thank You: Nserega.90
Please Log in or Create an account to join the conversation.
- JT
-
Topic Author
- Away
- Administrator
-
Less
More
- Posts: 950
- Thank you received: 491
22 Feb 2025 17:52 #322285
by JT
Replied by JT on topic Flexible GUI
In the image I'm pressing the button with the mouse, note mouse states don't work on a touch screen.
JT
QPushButton {
min-height: 100px;
min-width: 100px;
margin: 2px;
background-position: center;
background-origin: content;
background-clip: padding;
background-repeat: no-repeat;
background-color: #0000ff;
}
QPushButton#up_button {
background-image: url(:up_arrow.png);
}
QPushButton#down_button {
background-image: url(:down_arrow.png);
}
QPushButton:hover {
background-color: #aaff7f;
}
QPushButton:pressed {
background-color: #ff0000;
}
QPushButton:disabled {
background-color: #2c2c2c;
}
JT
Attachments:
The following user(s) said Thank You: Nserega.90
Please Log in or Create an account to join the conversation.
- 109jb
- Offline
- Premium Member
-
Less
More
- Posts: 97
- Thank you received: 14
22 Feb 2025 21:49 #322310
by 109jb
Replied by 109jb on topic Flexible GUI
I cannot thank you enough for doing all of this work for the FLexible GUI. I have been playing with it for a few days and it is very simple to create what you want visually.
That said, I have a question. I am setting up a Jog screen for use with a touchscreen monitor and cannot figure out how to make it so you can hold the on-screen jog button in a pressed state for continuous jogging. You can do it with a mouse, holding the mouse button down, but just holding your finger on the screen doesn't have the same effect.
I will say that I am experimenting with this in a virtual machine on my Windows PC using a simulated CNC machine. I don't currently have a touchsceen for the RPi I'll be using for LinuxCNC. Maybe that has something to do with it.
If anyone can help it would be appreciated.
That said, I have a question. I am setting up a Jog screen for use with a touchscreen monitor and cannot figure out how to make it so you can hold the on-screen jog button in a pressed state for continuous jogging. You can do it with a mouse, holding the mouse button down, but just holding your finger on the screen doesn't have the same effect.
I will say that I am experimenting with this in a virtual machine on my Windows PC using a simulated CNC machine. I don't currently have a touchsceen for the RPi I'll be using for LinuxCNC. Maybe that has something to do with it.
If anyone can help it would be appreciated.
The following user(s) said Thank You: tommylight, JT
Please Log in or Create an account to join the conversation.
- JT
-
Topic Author
- Away
- Administrator
-
Less
More
- Posts: 950
- Thank you received: 491
22 Feb 2025 22:52 #322319
by JT
Replied by JT on topic Flexible GUI
The jog buttons work as expected and the axis jogs as long as I'm touching the button on my touch screen on my BP and they work in Debian with a simulator. I'm assuming you're using jog plus minus joint buttons such as jog_plus_pb_0 for the X axis and Continuous is selected.
gnipsel.com/linuxcnc/flexgui/controls.html#jog-controls
Feedback is what keeps me going!
JT
gnipsel.com/linuxcnc/flexgui/controls.html#jog-controls
Feedback is what keeps me going!
JT
Please Log in or Create an account to join the conversation.
- 109jb
- Offline
- Premium Member
-
Less
More
- Posts: 97
- Thank you received: 14
23 Feb 2025 00:11 #322324
by 109jb
Replied by 109jb on topic Flexible GUI
Thanks JT. Maybe it is because I'm doing it right now in a virtual machine. i've been shopping for a touchscreen to buy and will accelerate my choice so that we can put this to bed. I'll let you know what I find.
Thanks again for all the work you have put into this, and also for the youtube video instruction on how to do things. It is fantastic!!!
John
Thanks again for all the work you have put into this, and also for the youtube video instruction on how to do things. It is fantastic!!!
John
Please Log in or Create an account to join the conversation.
- Nserega.90
- Offline
- Junior Member
-
Less
More
- Posts: 20
- Thank you received: 3
23 Feb 2025 08:58 #322348
by Nserega.90
Replied by Nserega.90 on topic Flexible GUI
Thanks John! I'll try!
Please Log in or Create an account to join the conversation.
Time to create page: 0.127 seconds