Screen shots of gui designs
I used both of your methods, but I get the same result:
[QtDesigner][INFO] Logging to "/home/ilya/qtdesigner.log" (logger.py:88)
Traceback (most recent call last):
File "/home/ilya/linuxcnc-dev/lib/python/qtvcp/plugins/dialog_plugin.py", line 5, in <module>
from qtvcp.widgets.dialog_widget import *
File "/home/ilya/linuxcnc-dev/lib/python/qtvcp/widgets/dialog_widget.py", line 23, in <module>
from qtvcp.widgets.origin_offsetview import Lcnc_OriginOffsetView as OFFVIEW_WIDGET
File "/home/ilya/linuxcnc-dev/lib/python/qtvcp/widgets/origin_offsetview.py", line 11, in <module>
log.debug('sys.argv: {}'.format(sys.argv))
AttributeError: 'module' object has no attribute 'argv'
I built the library, created a python folder, and put a link to the plugin in it. As you advised.
I also used the library and the script that Kurt offered. But the result is the same.
I searched google for this error but to no avail
Maybe you know what I did wrong? And how to fix that.
Regards,
ilya
Please Log in or Create an account to join the conversation.
That line is only for logging, so it is safe to comment.
Cheers,
Kurt
Please Log in or Create an account to join the conversation.
Try commenting out line 11 of origin_offsetview.py
and see what happens.
Chris M
Please Log in or Create an account to join the conversation.
[QtDesigner][INFO] Logging to "/home/ilya/qtdesigner.log" (logger.py:88)
It looks like the Designer just isn't displayed
That's right, the designer is displayed in the task Manager
Ilya
Please Log in or Create an account to join the conversation.
I bet it's something small to fix - just figuring out what it is is the problem.
Sorry for the trouble.
Chris M
Please Log in or Create an account to join the conversation.
Once you comment out that class the designer should load! That class is for the old Gtk based Gremlin back-plotter, which is not needed anymore so that code should be removed. I will work on that.Depending on your system the designer might hang when trying to load the plugins. I tracked the problem down to graphicsplugin.py. If you have this problem you can comment out the entire GraphicsPlugin class in that file and the designer should then load.
Cheers,
Kurt
Please Log in or Create an account to join the conversation.
Then I deleted the whole file graphicsplugin.py, and designer opened with all widgets except gremlin.
If the file is not deleted, but only comment LcncGraphics5Plugin, the result is the same.
I think can add gremlin manually by writing it in a XML file
Thank you for your efforts and responsiveness!
cheers,
Ilya
Please Log in or Create an account to join the conversation.
I forgot to mention that in graphicsplugin.py you need to comment line 5 (from qtvcp.widgets.graphics import Graphics) in addition to commenting out the entire GraphicsPlugin class. Sorry about that!
Cheers,
Kurt
Please Log in or Create an account to join the conversation.
I see a library that it uses, uses pango which require gtk I'm pretty sure.
I wonder if stretch doesn't have gtk 2 installed by default...
More work to see if I can free that dependency.
I pushed the changes to remove the GTK embedded widget from designer.
Chris M
Please Log in or Create an account to join the conversation.
maybe be a difference between qt 5.5 and 5.7...
still a wip..
Chris M
Please Log in or Create an account to join the conversation.