Screen shots of gui designs

More
07 Jun 2018 13:45 - 07 Jun 2018 13:49 #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:
[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
Last edit: 07 Jun 2018 13:49 by Ilya.

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

More
07 Jun 2018 14:25 #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
The following user(s) said Thank You: Ilya

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

More
07 Jun 2018 14:31 #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
The following user(s) said Thank You: Ilya

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

More
08 Jun 2018 05:38 - 08 Jun 2018 06:22 #111963 by Ilya
Replied by Ilya on topic Screen shots of gui designs
Now one line is displayed, and nothing more :(
[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
Last edit: 08 Jun 2018 06:22 by Ilya.

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

More
08 Jun 2018 14:36 #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
The following user(s) said Thank You: KCJ, Ilya

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

More
08 Jun 2018 14:36 #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
The following user(s) said Thank You: Ilya

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

More
09 Jun 2018 09:38 #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 or Create an account to join the conversation.

More
09 Jun 2018 21:51 #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
The following user(s) said Thank You: Ilya

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

More
14 Jun 2018 13:56 #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
The following user(s) said Thank You: KCJ, Ilya

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

More
14 Jun 2018 15:14 #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
The following user(s) said Thank You: KCJ, Ilya

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

Time to create page: 0.111 seconds
Powered by Kunena Forum