INFO and DEBUG messages

More
16 Sep 2020 04:48 #182350 by cmorley
Replied by cmorley on topic INFO and DEBUG messages
Try this:
Attachments:

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

More
16 Sep 2020 05:18 #182359 by phillc54
Replied by phillc54 on topic INFO and DEBUG messages

Try this:

Brilliant...:)

It works a treat, now for some fine tuning. Thanks Chris.

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

More
16 Sep 2020 05:57 #182370 by phillc54
Replied by phillc54 on topic INFO and DEBUG messages
I think lines 131 and 147 of cam_align.ui have the incorrect axes.

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

More
16 Sep 2020 07:04 - 16 Sep 2020 07:24 #182392 by phillc54
Replied by phillc54 on topic INFO and DEBUG messages
Chris, sorry to be a pain but I was under the impression it was possible to change a variable from the handler file. Something along the lines of changing self.rotationIncrement in camview_widget.py by having CAM.rotationIncrement = .1 in the initialized__ or class_patch__ function of the handler. Am I on the right track or just kidding myself...

Edit: I found it, self.w.camview.rotationIncrement
Last edit: 16 Sep 2020 07:24 by phillc54.

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

More
16 Sep 2020 23:59 #182480 by cmorley
Replied by cmorley on topic INFO and DEBUG messages
Did you figure out how to do what you want?

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

More
17 Sep 2020 00:07 #182481 by phillc54
Replied by phillc54 on topic INFO and DEBUG messages
Almost, my only remaining issue is that from the handler file I am trying to add a QPushButton to the horizontalLayout. I have established that the widget is created as I can read the size of it but I haven't managed to get it to "show".

After iteration 1562 I have:
        self.w.rotate_degrees = PBUTTON('TEST')
        self.w.rotate_degrees.resize(self.w.rotate_degrees.sizeHint())
        self.w.rotate_degrees.clicked.connect(self.rotation_changed)
        self.w.horizontalLayout.addWidget(self.w.rotate_degrees)
        self.w.rotate_degrees.show()
        print 'SIZE:', self.w.rotate_degrees.size()
And it is there but it is not. :(

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

More
17 Sep 2020 00:19 #182482 by cmorley
Replied by cmorley on topic INFO and DEBUG messages
see if this works for you.

But you could also edit a copy of the ui file and add it to your config file, if that is easier. (you would need to set up designer to find Qtvcp libraries though)
Attachments:

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

More
17 Sep 2020 00:25 #182483 by phillc54
Replied by phillc54 on topic INFO and DEBUG messages
Thank Chris, that is pretty well what I have now and behaves the same.

Yes, I have it working with a hand edited version of the ui file but I was hoping to do it with just the handler file and now I just can't let it go.

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

More
17 Sep 2020 00:30 #182484 by cmorley
Replied by cmorley on topic INFO and DEBUG messages
It works for me - is the button just hidden because the window isn't large enough?

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

More
17 Sep 2020 00:36 #182486 by phillc54
Replied by phillc54 on topic INFO and DEBUG messages

It works for me - is the button just hidden because the window isn't large enough?

:blush:
Well that is embarrassing...

I don't understand the large gap between the last label and the new button.

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

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