1
00:00:00,630 --> 00:00:11,370
Hello and welcome to the part two of creatine a count down timer with Python Before I carry on.

2
00:00:11,370 --> 00:00:23,280
I just want to elaborate on some key differences between the tea kin to this one and the tea kin to

3
00:00:23,520 --> 00:00:25,630
import for the T T.

4
00:00:25,630 --> 00:00:26,450
K..

5
00:00:26,640 --> 00:00:27,810
All right.

6
00:00:27,810 --> 00:00:36,670
The difference is a lot with the widgets with the widgets in t counter.

7
00:00:36,990 --> 00:00:46,920
They are highly and easily configurable so you have almost complete control over how they look their

8
00:00:46,960 --> 00:00:51,840
border with the font the images the color and so on.

9
00:00:51,870 --> 00:01:01,020
The widgets that are controlled by t t k they use styles to define how they look.

10
00:01:01,530 --> 00:01:03,530
So he takes a bit more work.

11
00:01:03,990 --> 00:01:13,160
If you want a non-standard button then t t k widgets are also a little bit more.

12
00:01:14,190 --> 00:01:23,010
They are more difficult to configure so they are both run under different types of engines so generally

13
00:01:23,010 --> 00:01:33,750
speaking the theme widgets that Q that makes your application look more elaborate more elegant.

14
00:01:33,750 --> 00:01:45,270
You get that white t t key but the TDK are less configurable in comparison to t Kinser.

15
00:01:45,390 --> 00:01:46,530
All let's carry on.

16
00:01:46,560 --> 00:01:50,340
So we are going to create say route

17
00:01:53,790 --> 00:01:54,840
say route

18
00:01:57,390 --> 00:02:01,210
is equals to T.

19
00:02:01,390 --> 00:02:06,040
Okay.

20
00:02:06,680 --> 00:02:10,890
The T K method of function.

21
00:02:10,890 --> 00:02:13,760
What that does it creates a route.

22
00:02:14,490 --> 00:02:24,660
So everything that you put on the screen whether it is a text box a bottom or an image is referred to

23
00:02:24,720 --> 00:02:34,890
as a widget and they must all be placed in the root so you can think of a widget like a oh the.

24
00:02:34,890 --> 00:02:40,870
Think of the route as a basket that you put all your widgets in.

25
00:02:41,100 --> 00:02:50,280
So now that we've got the route sorted let's try and add some properties so we aren't going to say route

26
00:02:51,990 --> 00:02:53,780
dot attributes.

27
00:02:54,840 --> 00:02:56,850
Let us set the attributes

28
00:02:59,340 --> 00:03:05,870
and this is relating to the screen so when you said how we want the screen to be.

29
00:03:05,970 --> 00:03:12,180
So you do double quote dash pull screen

30
00:03:18,060 --> 00:03:25,340
if you want your application to be full screen then the value you have to set the value to true.

31
00:03:26,670 --> 00:03:36,830
I want to be able to control how the screen looks so I can resize it so I am set in that value to force.

32
00:03:36,900 --> 00:03:46,000
So I want to set up the background color for the main screen.

33
00:03:46,200 --> 00:03:49,330
See do route which is the main window.

34
00:03:49,980 --> 00:03:54,570
So the route dot com configure

35
00:03:57,780 --> 00:04:03,440
and inside parentheses you type in the word background.

36
00:04:05,520 --> 00:04:06,180
Back

37
00:04:09,210 --> 00:04:12,800
ground when to set a color to black

38
00:04:18,830 --> 00:04:20,480
close it parent.

39
00:04:20,610 --> 00:04:23,750
Is the next thing I wanted to.

40
00:04:23,780 --> 00:04:33,530
I want a button like this X button to be on the application and I'm going to bind it to this function

41
00:04:33,530 --> 00:04:34,580
here called quit.

42
00:04:34,580 --> 00:04:38,810
So when you click on that X it will quit the application.

43
00:04:38,810 --> 00:04:55,470
So I do route doesn't bind and inside the parentheses for that method I am going to do a double quote

44
00:04:56,220 --> 00:04:57,700
and then the X..

45
00:04:57,960 --> 00:05:05,340
So this will be the X on the screen that you can click on and the other argument I'm going to passing

46
00:05:06,470 --> 00:05:12,050
is the function code quit.

47
00:05:12,170 --> 00:05:12,640
Okay.

48
00:05:12,720 --> 00:05:15,810
I'm passing that into that as well.

49
00:05:15,990 --> 00:05:23,650
Next someone to do is call the function this one to trigger the clock.

50
00:05:24,210 --> 00:05:41,500
So we do route 2 and to call the timer again so we want the timer to start again here after 1000 milliseconds.

51
00:05:41,680 --> 00:05:44,030
We're passing the.

52
00:05:44,050 --> 00:05:44,730
Can't wait.

53
00:05:44,730 --> 00:05:45,330
Function

54
00:05:49,780 --> 00:05:50,290
okay.

55
00:05:50,500 --> 00:05:52,330
So we we specify the here.

56
00:05:52,330 --> 00:05:55,270
We're doing that again here.

57
00:05:55,270 --> 00:06:00,870
So this is called here wants the screen is activated.

58
00:06:02,650 --> 00:06:05,580
So that's it for this video.

59
00:06:05,580 --> 00:06:10,860
I will conclude in Part 3 in part 3.

60
00:06:10,960 --> 00:06:17,610
We are going to partially set the end date and the time for the countdown.

61
00:06:17,650 --> 00:06:22,030
We're going to set when we want the countdown to begin.

62
00:06:22,090 --> 00:06:25,050
We'll do that in part 3.

63
00:06:25,060 --> 00:06:25,870
Thanks for watching.
