1
00:00:00,480 --> 00:00:01,290
Hello, everyone.

2
00:00:01,800 --> 00:00:07,290
Today we show you how you can create a second window using the first one, which means that we will

3
00:00:07,290 --> 00:00:10,030
have two windows or more than two.

4
00:00:10,170 --> 00:00:16,170
So the first thing that we will have to do is we need to create the first window, which is the main

5
00:00:16,170 --> 00:00:16,460
one.

6
00:00:16,570 --> 00:00:20,880
So from taking three.

7
00:00:23,040 --> 00:00:32,380
Seeking to import everything that would create the roots or the first one, there are the many, though

8
00:00:32,550 --> 00:00:34,260
you can't call it anything we want.

9
00:00:34,710 --> 00:00:45,910
So Teekay then we put it in the mail, just Telemark, we can't we can't write route's points, MAINELLA

10
00:00:46,080 --> 00:00:51,480
or we can just write Mainella without using this, because we have just one product here and we know

11
00:00:51,480 --> 00:00:54,470
that this may look is for this window.

12
00:00:54,480 --> 00:00:57,780
OK, we can write anything you want.

13
00:00:57,970 --> 00:01:04,560
Well, if we want to write a roots point, my maino or if we want to make to a it just made up.

14
00:01:04,560 --> 00:01:04,930
It will.

15
00:01:04,950 --> 00:01:05,520
It works.

16
00:01:05,700 --> 00:01:14,880
OK, so we will make some changes, for example, that we will call it main.

17
00:01:15,960 --> 00:01:23,900
Then we will we change the geometry geometry here for example.

18
00:01:23,910 --> 00:01:30,390
We make it 300 by 400 then do change the icon.

19
00:01:30,930 --> 00:01:38,320
So root that icon here we have logo the C.

20
00:01:38,400 --> 00:01:41,270
Oh so we see a window.

21
00:01:41,640 --> 00:01:42,810
This is our main window.

22
00:01:43,080 --> 00:01:45,930
No we will, we will add new window for example.

23
00:01:45,930 --> 00:01:53,030
We can, we can add any if we want to add three or four anything we want we can add it for this moment.

24
00:01:53,280 --> 00:01:59,820
I can show you how you can use how we can add just one or two, but you can use a new any window you

25
00:01:59,820 --> 00:02:00,180
want.

26
00:02:00,510 --> 00:02:01,890
It depends on your project.

27
00:02:02,220 --> 00:02:07,760
So to add new window, we will use a function called top level.

28
00:02:08,130 --> 00:02:10,970
The function top level will create a new window for us.

29
00:02:11,250 --> 00:02:14,010
So, for example, we will be invaluable.

30
00:02:14,010 --> 00:02:15,690
As always, we call is new.

31
00:02:16,050 --> 00:02:18,580
So this is the function top level.

32
00:02:19,140 --> 00:02:22,020
This function will create a new window for us.

33
00:02:22,290 --> 00:02:29,130
If we write this line two times or three times, if we use this function two times, we will have two

34
00:02:29,130 --> 00:02:29,880
new windows.

35
00:02:29,880 --> 00:02:33,090
If we use it three times, we have three new windows, etc..

36
00:02:33,510 --> 00:02:38,220
So here we have this is the main window and this is the second.

37
00:02:38,760 --> 00:02:44,010
As you can see, we have the same name as the main because we didn't change it.

38
00:02:44,010 --> 00:02:45,780
But we can make a lot of changes here.

39
00:02:45,780 --> 00:02:50,640
For example, the same functions that we used for the roots.

40
00:02:50,640 --> 00:02:57,630
We can use it here, for example, new, but item will call it second.

41
00:02:58,650 --> 00:03:07,260
Then if we want to change the icon for the moment, I have just has to get an icon that we used before

42
00:03:08,100 --> 00:03:08,750
Akko.

43
00:03:08,760 --> 00:03:15,090
So you can see here, this is the new the new title and is the new icon.

44
00:03:15,540 --> 00:03:22,590
Then we can change even the geometry, for example, new that geometry.

45
00:03:23,160 --> 00:03:28,350
Then he will put it, for example, I don't know, three hundred, three hundred.

46
00:03:31,140 --> 00:03:34,740
And here we have our window.

47
00:03:35,040 --> 00:03:42,120
We can change the background, color, etc. if we want to add another new window, for example, we

48
00:03:42,130 --> 00:03:43,620
call it a new tool.

49
00:03:43,620 --> 00:03:47,550
For example, we use the same function, top level here.

50
00:03:48,570 --> 00:03:53,610
And you will see that we have this is the first this is the main window.

51
00:03:53,610 --> 00:03:55,710
This is the second and this is the third.

52
00:03:55,740 --> 00:03:59,220
We can't change the name and icon.

53
00:03:59,790 --> 00:04:05,880
We can change everything we want, as we did with the main the main window.

54
00:04:06,030 --> 00:04:13,500
OK, when we close, as you can see, when we closed the window, the other windows will close automatically.

55
00:04:13,500 --> 00:04:20,820
But if we closed just the second or third window, the main window will stay here.

56
00:04:21,600 --> 00:04:29,010
So I will show you how, for example, if we want to put to add the new window after that, we press

57
00:04:29,010 --> 00:04:30,810
or we click a button.

58
00:04:31,110 --> 00:04:32,100
So we will do it.

59
00:04:32,490 --> 00:04:36,060
We will take this all because we don't need it for the moment.

60
00:04:36,480 --> 00:04:37,340
No, we will.

61
00:04:37,350 --> 00:04:40,950
To do this, we have to create a button after this.

62
00:04:40,950 --> 00:04:44,640
When we press or click on this button will create the new window.

63
00:04:44,910 --> 00:04:46,860
So we use it like this, for example.

64
00:04:47,130 --> 00:04:55,920
But it could button then here we put it in the route because we want it in the boat.

65
00:04:56,730 --> 00:05:06,960
No, we will make a text based we call it here, for example, and then the default.

66
00:05:09,140 --> 00:05:22,030
Formed equals, for example, on Broyd, then the same every twenty five that I would make something

67
00:05:22,040 --> 00:05:38,270
here because I wanted big, big button, so but X equal, I don't know, 20 or 30 to T then, but Y

68
00:05:38,270 --> 00:05:39,310
equals 20.

69
00:05:40,310 --> 00:05:55,970
Now we will back this sorry, this button by button that bug and you make some padding but the Y equals

70
00:05:57,260 --> 00:05:57,820
40.

71
00:05:58,670 --> 00:05:59,960
We see our bottom.

72
00:06:00,890 --> 00:06:02,990
So this is our button.

73
00:06:02,990 --> 00:06:04,310
We want that.

74
00:06:04,460 --> 00:06:08,880
If we click on this button this way we create this new window.

75
00:06:09,320 --> 00:06:16,760
So I will change the background of this of this window because I don't like the white one.

76
00:06:17,090 --> 00:06:25,070
So roads that configure and here we will make six zeros to make it black.

77
00:06:29,090 --> 00:06:29,340
Wait.

78
00:06:30,060 --> 00:06:33,470
Sorry, I forgot to beg for background.

79
00:06:36,030 --> 00:06:36,680
Big.

80
00:06:40,700 --> 00:06:44,450
I put seven zeroes there is now caught with the visitors.

81
00:06:44,750 --> 00:06:46,150
So this is our button.

82
00:06:46,730 --> 00:06:49,690
Now, I want that this video shows.

83
00:06:49,700 --> 00:06:51,350
After that, I click on this words.

84
00:06:51,440 --> 00:06:54,760
If I don't click in this button, we won't have this window.

85
00:06:55,220 --> 00:06:59,680
So to do this, we just have to make a comment here.

86
00:07:00,950 --> 00:07:09,170
And this come out will create a new window through college, create then we will define it.

87
00:07:12,020 --> 00:07:17,110
The create then parentheses.

88
00:07:18,710 --> 00:07:25,130
What what we said when we said that we want after that we can we click in this button, we will create

89
00:07:25,130 --> 00:07:32,440
the new window which means after that, after that women click in this button, we will call this function.

90
00:07:32,810 --> 00:07:39,590
So the creation of the new window, we will put it in in this function, which means if we call the

91
00:07:39,590 --> 00:07:41,410
function, we will create a new window.

92
00:07:41,750 --> 00:07:51,020
So we will put it like this, control X and control the means that when we press this button, we will

93
00:07:51,260 --> 00:07:52,430
call this function.

94
00:07:52,670 --> 00:07:59,540
So this function, what we what we do, it will create a new window, then change the title and icon

95
00:07:59,540 --> 00:08:00,370
and geometry.

96
00:08:00,860 --> 00:08:02,270
So we will see if it works.

97
00:08:02,360 --> 00:08:05,510
So here we have every click this button, we have this window.

98
00:08:05,510 --> 00:08:11,330
If we can take another time, we will have another one, etc. because in every time we click the button,

99
00:08:11,780 --> 00:08:15,560
we will call the function for another time.

100
00:08:15,590 --> 00:08:18,350
So when we call it, we will create a new window, etc..

101
00:08:18,920 --> 00:08:27,020
So that was for today, how to create a new a new window that how to put it in, how to create it.

102
00:08:27,350 --> 00:08:34,280
After clicking in the button in the next video, we show you how you can make some editing and some

103
00:08:34,280 --> 00:08:35,510
buttons in the new window.

104
00:08:36,200 --> 00:08:38,660
And I see you there by.
