- Posts: 574
- Thank you received: 96
Сustomization QTvcp
- hottabich
- Offline
- Platinum Member
-
Less
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!
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
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
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.
- hottabich
- Offline
- Platinum Member
-
Less
More
- Posts: 574
- Thank you received: 96
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.
- hottabich
- Offline
- Platinum Member
-
Less
More
- Posts: 574
- Thank you received: 96
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.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
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
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.
- hottabich
- Offline
- Platinum Member
-
Less
More
- Posts: 574
- Thank you received: 96
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.
This is how it works with python 2. Thanks!
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))
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