Splash Screen in QTVCP
- rbobey1989
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 105
- Thank you received: 27
20 Jan 2024 23:58 #291227
by rbobey1989
Splash Screen in QTVCP was created by rbobey1989
Hello, I am building a new GUI based on QTVCP, I have a small doubt how I could first show a splash screen before launching the GUI, the loading of the GUI is not handled from the driver file, if anyone has any ideas, thanks in advance
Please Log in or Create an account to join the conversation.
21 Jan 2024 00:27 #291232
by cmorley
Replied by cmorley on topic Splash Screen in QTVCP
in the INI:
INTRO_GRAPHIC = emc2.gif - The image shown on the splash screen.
INTRO_TIME = 5 - The maximum time to show the splash screen, in seconds
linuxcnc.org/docs/stable/html/config/ini-config.html
Would that work for you?
INTRO_GRAPHIC = emc2.gif - The image shown on the splash screen.
INTRO_TIME = 5 - The maximum time to show the splash screen, in seconds
linuxcnc.org/docs/stable/html/config/ini-config.html
Would that work for you?
The following user(s) said Thank You: rbobey1989
Please Log in or Create an account to join the conversation.
- rbobey1989
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 105
- Thank you received: 27
21 Jan 2024 15:31 #291261
by rbobey1989
Replied by rbobey1989 on topic Splash Screen in QTVCP
Hello cmorley, great idea, I have created a gif file and I have tried it this way, the splash screen loads but the animation of the gif file does not run, I don't know if an animation can be achieved using this method, anyway I was thinking of a splash screen coded in python code, a progress bar with a loading percentage, some more ideas would be welcome.
Please Log in or Create an account to join the conversation.
23 Jan 2024 02:06 #291382
by cmorley
Replied by cmorley on topic Splash Screen in QTVCP
Depends how you want it to work.
Usually one uses a splash screen to entertain the user while other stuff is working in the background. The linuxcnc script is what is setting linuxcnc up. It's a cryptic bash script.
The linuxcnc script runs a TCL script (popimage) that displays the image.
There is no facility for a user to pick a different program to display an image.
You could modify the linuxcnc script though.
Now you could add an image display to qtvcp screen code but it would display later in the loading procedure. Maybe that's ok.
You could also test just loading a program with HAL in the INI.
[HAL]
HALCMD = loadusr SOME_PROGRAM MY_GIF
But if you want a useful progress bar I think the linuxcnc scrpt is where it should be.
Could you clarify exactly how you want it to work or why you want it?
Usually one uses a splash screen to entertain the user while other stuff is working in the background. The linuxcnc script is what is setting linuxcnc up. It's a cryptic bash script.
The linuxcnc script runs a TCL script (popimage) that displays the image.
There is no facility for a user to pick a different program to display an image.
You could modify the linuxcnc script though.
Now you could add an image display to qtvcp screen code but it would display later in the loading procedure. Maybe that's ok.
You could also test just loading a program with HAL in the INI.
[HAL]
HALCMD = loadusr SOME_PROGRAM MY_GIF
But if you want a useful progress bar I think the linuxcnc scrpt is where it should be.
Could you clarify exactly how you want it to work or why you want it?
Please Log in or Create an account to join the conversation.
23 Jan 2024 03:06 #291386
by cmorley
Replied by cmorley on topic Splash Screen in QTVCP
I tried this and it worked prety well- I downloaded a cnc gif and it looked better: resize on the linuxcnc gif doiesn't have an effect.
HALCMD = loadusr animate /home/chris/emc/linuxcnc-wizard.gif -delay 50 -loop 40 -backdrop -resize 150%
HALCMD = loadusr animate /home/chris/emc/linuxcnc-wizard.gif -delay 50 -loop 40 -backdrop -resize 150%
Please Log in or Create an account to join the conversation.
23 Jan 2024 03:23 #291388
by cmorley
Replied by cmorley on topic Splash Screen in QTVCP
order matters:
HALCMD = loadusr animate /home/chris/emc/linuxcnc-wizard.gif -delay 50 -loop 40 -resize 200% -backdrop
HALCMD = loadusr animate /home/chris/emc/linuxcnc-wizard.gif -delay 50 -loop 40 -resize 200% -backdrop
The following user(s) said Thank You: rbobey1989
Please Log in or Create an account to join the conversation.
- rbobey1989
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 105
- Thank you received: 27
23 Jan 2024 12:47 - 23 Jan 2024 13:01 #291421
by rbobey1989
Replied by rbobey1989 on topic Splash Screen in QTVCP
Hello Cmorley, thanks for the response, I will try this method, I have no particular goal in showing a splash screen, simply aesthetic, although it is good to know that the linuxcnc script is the correct file to code this function, I will try this more afternoon thanks for your help
Last edit: 23 Jan 2024 13:01 by rbobey1989.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.089 seconds