Generating a own Popup

More
21 Jan 2026 15:53 #341649 by DemonClaW
Replied by DemonClaW on topic Generating a own Popup
First thing is that my data path isnt /usr/share anymore, instead some documentations told me to get the file seperated copyed into the machine folder, for me i got the base ui and handler there : /home/.../linuxcnc/configs/.../qtvcp/screens/qtdragon_hd/. The second thing is your talking about taking your file name it "qtdragon_hd_handler.py", if i go like that i would override the current base handler, that doesnt make sence to me. What i exactly did know is

-Rename ur .py data to vacuum_popup.py (using it as a second handler)
-Implement your 3 lines to .ini like that:
EMBED_TAB_NAME=vacuum_popup
EMBED_TAB_COMMAND=qtvcp vacuum_popup
EMBED_TAB_LOCATION=DIALOG
-/home/.../linuxcnc/configs/.../qtvcp/panels/vacuum_popup/ is the path where the ui would be

If i start then it seems like it load but it cant cant work with the class: Like you will see in the error code i attached as .txt

I feel kind of sorry but i really want to learn the things, even if the start is currently kind of hard. But your help is getting me confident i can make it.
Thanks for your help

 
Attachments:

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

More
21 Jan 2026 17:14 #341658 by cmorley
Replied by cmorley on topic Generating a own Popup
DId you modify the qtdragon ui and handler fikes is that why you copied
the original files? I don't think you told me that.
The qtdragon_handler file that I posted creates an addition to the original. But you can't do both, either you copy the whole file and modify them or you set the file to extend the original.

Let me know what you want to do.
The following user(s) said Thank You: tommylight, DemonClaW

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

More
21 Jan 2026 18:16 #341662 by DemonClaW
Replied by DemonClaW on topic Generating a own Popup
Im soooo sorry i did miss to Tell you, yeah the original .ui is already touched a bit. The handler is untouched. Ive got trough a Lot of Tutorials and almost everyone copied the Files into their Main Maschine, it Made sence for me to have them all together in one folder so i got with that, too.

In my opinion it would be the easist way to extend the current handler Data so the Rest could stay Like i already got it

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

More
22 Jan 2026 05:12 #341679 by cmorley
Replied by cmorley on topic Generating a own Popup
ok let's try this:
Since your handler isn't modified, replace it with the one I supplied. It's ok to keep your modified ui file in the config folder.
Of course you still need the INI changes.

If you do want to modify the original handler for other reasons, that can be done, you just need to add most of the code in the handler I supplied.

Just to be complete Qtvcp will use the default handler and ui files unless it find either or both in your config folder.
In the case of the handler file, it's possible to make a special handler file that loads the original and then extend it.
This is nice as if the handler gets updated in linuxcnc, you will get those changes and then the local changes are added on top.
 
The following user(s) said Thank You: tommylight, DemonClaW

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

More
22 Jan 2026 17:53 #341712 by DemonClaW
Replied by DemonClaW on topic Generating a own Popup
Ive integrated your handler File now into the Main handler. Problem is that the Error Code is exactly the Same as before.

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

More
22 Jan 2026 18:26 #341713 by cmorley
Replied by cmorley on topic Generating a own Popup
please post your ui and handler file and the exact error message please.
The following user(s) said Thank You: DemonClaW

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

More
22 Jan 2026 18:42 - 22 Jan 2026 18:46 #341716 by DemonClaW
Replied by DemonClaW on topic Generating a own Popup
Yeah for sure these are the files, the error code is already above.
Attachments:
Last edit: 22 Jan 2026 18:46 by DemonClaW.

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

More
22 Jan 2026 18:54 #341718 by cmorley
Replied by cmorley on topic Generating a own Popup
The ui files are 0 kb for some reason

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

More
22 Jan 2026 18:59 #341719 by DemonClaW
Replied by DemonClaW on topic Generating a own Popup
No idea how this happend i will post and check it this time
Attachments:

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

More
22 Jan 2026 19:01 #341720 by cmorley
Replied by cmorley on topic Generating a own Popup
please build your panel as a main window instead of a dialog
The following user(s) said Thank You: DemonClaW

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

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