Scale

3 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€83.63
List Price:  €117.08
You save:  €33.45
£72.43
List Price:  £101.41
You save:  £28.97
CA$135.33
List Price:  CA$189.47
You save:  CA$54.14
A$141.70
List Price:  A$198.39
You save:  A$56.68
S$126.40
List Price:  S$176.96
You save:  S$50.56
HK$780.47
List Price:  HK$1,092.70
You save:  HK$312.22
CHF 76.77
List Price:  CHF 107.48
You save:  CHF 30.71
NOK kr957.80
List Price:  NOK kr1,340.96
You save:  NOK kr383.15
DKK kr624.45
List Price:  DKK kr874.26
You save:  DKK kr249.80
NZ$164.82
List Price:  NZ$230.76
You save:  NZ$65.93
د.إ367.21
List Price:  د.إ514.11
You save:  د.إ146.90
৳12,225.55
List Price:  ৳17,116.26
You save:  ৳4,890.71
₹9,196.14
List Price:  ₹12,874.97
You save:  ₹3,678.82
RM392.71
List Price:  RM549.81
You save:  RM157.10
₦138,711.12
List Price:  ₦194,201.12
You save:  ₦55,490
₨27,987.63
List Price:  ₨39,183.81
You save:  ₨11,196.17
฿3,117.78
List Price:  ฿4,365.02
You save:  ฿1,247.24
₺4,342.05
List Price:  ₺6,079.05
You save:  ₺1,736.99
B$520.08
List Price:  B$728.14
You save:  B$208.05
R1,575.26
List Price:  R2,205.43
You save:  R630.17
Лв163.56
List Price:  Лв228.99
You save:  Лв65.43
₩143,205.96
List Price:  ₩200,494.07
You save:  ₩57,288.11
₪308.31
List Price:  ₪431.65
You save:  ₪123.33
₱5,899.68
List Price:  ₱8,259.80
You save:  ₱2,360.11
¥15,330.04
List Price:  ¥21,462.67
You save:  ¥6,132.63
MX$1,714.99
List Price:  MX$2,401.05
You save:  MX$686.06
QR363.75
List Price:  QR509.27
You save:  QR145.51
P1,309.07
List Price:  P1,832.75
You save:  P523.68
KSh12,893.71
List Price:  KSh18,051.71
You save:  KSh5,158
E£4,688.30
List Price:  E£6,563.81
You save:  E£1,875.51
ብር15,556.62
List Price:  ብር21,779.90
You save:  ብር6,223.27
Kz91,204.17
List Price:  Kz127,689.49
You save:  Kz36,485.32
CLP$86,573.05
List Price:  CLP$121,205.73
You save:  CLP$34,632.68
CN¥694.44
List Price:  CN¥972.24
You save:  CN¥277.80
RD$6,294.69
List Price:  RD$8,812.82
You save:  RD$2,518.13
DA12,909.30
List Price:  DA18,073.54
You save:  DA5,164.23
FJ$219.03
List Price:  FJ$306.66
You save:  FJ$87.62
Q767.55
List Price:  Q1,074.61
You save:  Q307.05
GY$20,930.98
List Price:  GY$29,304.21
You save:  GY$8,373.23
ISK kr12,110.78
List Price:  ISK kr16,955.58
You save:  ISK kr4,844.80
DH904.57
List Price:  DH1,266.43
You save:  DH361.86
L1,681.92
List Price:  L2,354.76
You save:  L672.83
ден5,150.17
List Price:  ден7,210.45
You save:  ден2,060.27
MOP$804.02
List Price:  MOP$1,125.66
You save:  MOP$321.64
N$1,590.78
List Price:  N$2,227.16
You save:  N$636.37
C$3,681.50
List Price:  C$5,154.25
You save:  C$1,472.74
रु14,703.41
List Price:  रु20,585.37
You save:  रु5,881.95
S/334.75
List Price:  S/468.66
You save:  S/133.91
K428.25
List Price:  K599.57
You save:  K171.31
SAR375.02
List Price:  SAR525.04
You save:  SAR150.02
ZK1,988.36
List Price:  ZK2,783.78
You save:  ZK795.42
L426.18
List Price:  L596.67
You save:  L170.49
Kč2,032.47
List Price:  Kč2,845.54
You save:  Kč813.07
Ft31,912.53
List Price:  Ft44,678.81
You save:  Ft12,766.28
SEK kr885.01
List Price:  SEK kr1,239.05
You save:  SEK kr354.04
ARS$144,435.55
List Price:  ARS$202,215.55
You save:  ARS$57,780
Bs691.31
List Price:  Bs967.87
You save:  Bs276.55
COP$365,835.88
List Price:  COP$512,184.87
You save:  COP$146,348.99
₡49,655.42
List Price:  ₡69,519.58
You save:  ₡19,864.15
L2,640.21
List Price:  L3,696.41
You save:  L1,056.19
₲671,837.20
List Price:  ₲940,598.96
You save:  ₲268,761.75
$U3,743.56
List Price:  $U5,241.13
You save:  $U1,497.57
zł351.82
List Price:  zł492.57
You save:  zł140.74
Already have an account? Log In

Transcript

Hello in this python programming video, we are going to look at the scale widget which is basically you can think of it like a vertical slider. And we'll just print off a value from that scale widget once we click on a button, so first of all we are going to do the clicker messed up again. Again, this just happens. For me if you've been watching the series your nurser happens with this Ida. Ad should have season. Okay, here we go.

We're going to do is var equals double. So this is going to be the variable type that we would get from this scale widget. Now we're going to go and specify the window and specify the variable time law that we created. Now is going to scaffold a pack, like, so let's just run it, see what we get. So you get this little scale here, which is, you know, pretty cool. At the moment, we have these valuable, we're gonna actually retrieve it and put it into our label.

First of all, we're going to create a button, which will just be used to detect when the user clicked it. And then we'll put in the values go into a label, which we're going to create in a second. We truly value man, get value. You might be thinking that we created this not yet. We will be very soon, a fortune pack. I'll create a label first.

And then I'll create that get value. Label Label. window and we'll do labor Hi, now we just need to create that method. And in here, we're going to do selection equals value. Going to convert to the value, wall dot get all stuff that we've done before. And finally, we're going to configure the label to actually have this value tax equals selection, one and hopefully we get no errors, no errors.

If I knew something down, click the button field value of 7.0 or 10, you get a value of 79. So there you go. That is it for the scale widget. If you have any questions or you want to know about the multitude of Functions be on what we've covered for the scale widget. Feel free to check out the link that will attach with this video as we have with you know all of the doing widget tutorials in this series. Thanks for watching.

I look forward to seeing you in the next video.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.