Screen shots of gui designs

More
8 years 4 months ago #111878 by Ilya
Replied by Ilya on topic Screen shots of gui designs
First of all, thank you for the detailed instructions.
I used both of your methods, but I get the same result:
Code:
[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 have debian 9, and Qt 5.7.1 like kcj
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 to join the conversation.

More
8 years 4 months ago #111883 by KCJ
Replied by KCJ on topic Screen shots of gui designs
Interesting, I have no recollection of doing this, but I have commented out the offending line 11 in `origin_offsetview.py`.
That line is only for logging, so it is safe to comment.

Cheers,
Kurt

Please Log in to join the conversation.

More
8 years 4 months ago #111885 by cmorley
Replied by cmorley on topic Screen shots of gui designs
I don't see how you did anything wrong.
Try commenting out line 11 of origin_offsetview.py
and see what happens.

Chris M

Please Log in to join the conversation.

More
8 years 4 months ago #111963 by Ilya
Replied by Ilya on topic Screen shots of gui designs
Now one line is displayed, and nothing more :(
Code:
[QtDesigner][INFO] Logging to "/home/ilya/qtdesigner.log" (logger.py:88)
At the same time, apparently, the terminal is doing something, and this is something that is canceled only by closing the terminal
It looks like the Designer just isn't displayed
That's right, the designer is displayed in the task Manager

Ilya

Please Log in to join the conversation.

More
8 years 4 months ago #112003 by cmorley
Replied by cmorley on topic Screen shots of gui designs
When I get home from my work rotation - I wil see if I can duplicate the error on my debian computer.
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 to join the conversation.

More
8 years 4 months ago #112005 by KCJ
Replied by KCJ on topic Screen shots of gui designs
That is the problem I mentioned in my previous post.

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.

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.

Cheers,
Kurt

Please Log in to join the conversation.

More
8 years 4 months ago #112065 by Ilya
Replied by Ilya on topic Screen shots of gui designs
Removing the GraphicsPlugin class did not help.
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 to join the conversation.

More
8 years 4 months ago #112088 by KCJ
Replied by KCJ on topic Screen shots of gui designs
Glad to hear you got the widgets to load!

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 to join the conversation.

More
8 years 4 months ago #112357 by cmorley
Replied by cmorley on topic Screen shots of gui designs
I did some work on this.. it seems gtk is still required on my qt version of graphics.
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 to join the conversation.

More
8 years 4 months ago #112358 by cmorley
Replied by cmorley on topic Screen shots of gui designs
hmm well I then tried the change on stretch and it is broken - arg.
maybe be a difference between qt 5.5 and 5.7...
still a wip..

Chris M

Please Log in to join the conversation.

Time to create page: 1.301 seconds
Powered by Kunena Forum