- Posts: 6803
- Thank you received: 0
INFO and DEBUG messages
6 years 1 month ago #182350
by cmorley
Replied by cmorley on topic INFO and DEBUG messages
Try this:
Please Log in to join the conversation.
6 years 1 month ago #182359
by phillc54

It works a treat, now for some fine tuning. Thanks Chris.
Replied by phillc54 on topic INFO and DEBUG messages
Brilliant...cmorley wrote: Try this:
It works a treat, now for some fine tuning. Thanks Chris.
Please Log in to join the conversation.
6 years 1 month ago #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 to join the conversation.
6 years 1 month ago #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
Edit: I found it, self.w.camview.rotationIncrement
Please Log in to join the conversation.
6 years 1 month ago #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 to join the conversation.
6 years 1 month ago #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:
And it is there but it is not.
After iteration 1562 I have:
Code:
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()
Please Log in to join the conversation.
6 years 1 month ago #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)
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)
Please Log in to join the conversation.
6 years 1 month ago #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.
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 to join the conversation.
6 years 1 month ago #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 to join the conversation.
6 years 1 month ago #182486
by phillc54
Well that is embarrassing...
I don't understand the large gap between the last label and the new button.
Replied by phillc54 on topic INFO and DEBUG messages
:blush:cmorley wrote: It works for me - is the button just hidden because the window isn't large enough?
Well that is embarrassing...
I don't understand the large gap between the last label and the new button.
Please Log in to join the conversation.
Time to create page: 0.077 seconds
