- Posts: 6
- Thank you received: 0
Custom widget management
- erikfriesen
- Topic Author
- Offline
- New Member
-
Less
More
6 months 2 weeks ago #345538
by erikfriesen
Custom widget management was created by erikfriesen
Is there a way to create custom widgets without directly editing /usr/lib/python3/dist-packages/qtvcp/ items?
I'd prefer to store these custom widgets in user directory to track modifications easier. Otherwise I have to edit as root.
I've tried and failed to pinpoint where the include directory is defined.
I'd prefer to store these custom widgets in user directory to track modifications easier. Otherwise I have to edit as root.
I've tried and failed to pinpoint where the include directory is defined.
Please Log in to join the conversation.
6 months 2 weeks ago #345583
by cmorley
Replied by cmorley on topic Custom widget management
Except for versa probe and basic probe, the short answer is no general way to customize widgets.
Versa probe and basic probe look for customized ui and handler files.
This describes the process for them:
linuxcnc.org/docs/devel/html/gui/qtdrago..._probe_screen_widget
You can always add your own widget to qtdesigner.
the plugin link should be in a hidden file in your home folder:
.designer/plugins/python/Link to qtvcp_plugin.py
you could add more links, but it's a fair amount of work.
What widgets do you wish to customize?
Versa probe and basic probe look for customized ui and handler files.
This describes the process for them:
linuxcnc.org/docs/devel/html/gui/qtdrago..._probe_screen_widget
You can always add your own widget to qtdesigner.
the plugin link should be in a hidden file in your home folder:
.designer/plugins/python/Link to qtvcp_plugin.py
you could add more links, but it's a fair amount of work.
What widgets do you wish to customize?
Please Log in to join the conversation.
- erikfriesen
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
6 months 2 weeks ago #345592
by erikfriesen
Replied by erikfriesen on topic Custom widget management
What I've done is added to qtvcp_plugin.py
and in ~/.designer/plugins/python/user_plugins.py
and in qt_handler.py at top
It works ok, just one root mode needed that way
Code:
import user_plugins from user_plugins import *
Code:
import sys sys.path.insert(0, "/home/path....")
from mod_plugin import somePlugin
Code:
sys.path.insert(0, '/home/path....')
Please Log in to join the conversation.
Time to create page: 2.102 seconds
