Сustomization QTvcp

More
4 years 11 months ago #227453 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Replaced TabWidget with QTabWidget and it's fine. Thank you for the attention!
Attachments:

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

More
4 years 11 months ago - 4 years 11 months ago #227455 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Sorry i missed it was TabWidget not QTabWidget.
There is a property tabSize that might have helped
Last edit: 4 years 11 months ago by cmorley.
The following user(s) said Thank You: hottabich

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

More
4 years 11 months ago #227490 by hottabich
Replied by hottabich on topic Сustomization QTvcp
TabSize in the constructor does not work, I asked about this in the post above. Thanks!

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

More
4 years 11 months ago #227685 by hottabich
Replied by hottabich on topic Сustomization QTvcp
Please tell me what is wrong with the rapid_rate adjustment. The numeric value of current_rapid_rate is not displayed.
Attachments:

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

More
4 years 11 months ago #227694 by cmorley
Replied by cmorley on topic Сustomization QTvcp
I would add a print statement in the function adj_rapid_changed to confirm it's being called.
I would guess a variable such as self.factor = 0

Chris
The following user(s) said Thank You: hottabich

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

More
4 years 11 months ago - 4 years 11 months ago #227724 by hottabich
Replied by hottabich on topic Сustomization QTvcp
My mistake. For python 3 it works as is. 
Code:
def adj_rapid_changed(self, value):         rapid = (float(value) / 100) * self.max_linear_velocity * self.factor         self.w.lbl_max_rapid.setText("{:4.0f}".format(rapid))
  This is how it works with python 2. Thanks!
Last edit: 4 years 11 months ago by hottabich.

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

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