Hey, welcome back with the last video.
In this video, we will implement the about item here so that when the user presses this, we're going
to show a.
Message books showing some information about our program.
So let's do that.
First, you want to find out where you have written, where you have created that about cue action.
In my case, it's.
In line 24.
So that's the main window class, right?
So go to main window in the structure here and then go and locate the queue action, which gets about
as a string, as an argument.
So we create the queue action there and we add that queue action to the help menu item.
Right.
That's the health menu item that I just showed you.
You go to help and then you go to a bolt.
This line is needed for those who are on Mac computers.
We have written this line earlier, but now what we want to add is we want to connect the about.
Action.
Object to a method.
So we want to see that triggered.
So when the user triggers that, when they click on that about item, we want to connect it to a self
dot about method.
So inside main window class we want to add.
And about methods.
So we have a delete methods here.
Let's add an about method as well.
The about method is going to create a dialog box.
Let's call this about dialogue.
And then execute it here.
So this is going to be a class which will write just here class about dialog.
Now, since this is a very simple window we can inherit from cue message box instead of inheriting from
queue dialog.
We did use cue message box earlier with a delete dialog box.
So the confirmation that the record was deleted, that confirmation prompt was created using a cue message
box.
You can see it in delete dialog.
This one here.
So but here what we did here is we simply instantiated this.
We didn't create a class which inherited from this, which is fine.
So either way it's fine.
But inheriting from that keeps the code more organized.
So that's what we're doing here, inheriting from that.
And so then we have to write an init method.
Call the init method over the parent.
Set a title using set window title such as a boat.
Write some content first.
So this could be like multiple lines.
You can write something like this app was created during the course, the Python mega course.
Feel free to modify and use this app.
Yeah, that should be fine.
And then you do self set text and then you say content.
So compare this to the other codes we use with a delete.
Case.
So here we are calling set texts from self, but in deletes, which is here we're calling set text from
confirmation widget.
So confirmation widget is the variable that holds the queue message box instance.
But now self is the variable that holds the confirmation box instance.
That's what happens when you inherit, right?
Let's try it.
The code go to help about and yeah, that's the window.
There are other ways you can format this better, but I'll leave that to you.
So that's enough for this app.
I believe it was quite a long one, but it's quite fun to build.
I hope so.
For you, that was the case to Thanks a lot for following.
And yeah, we have more apps to build, so I'll see you in the next ones.