-
Notifications
You must be signed in to change notification settings - Fork 0
/
Movie.py
37 lines (31 loc) · 1.43 KB
/
Movie.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from PyQt5.QtWidgets import QApplication, QMessageBox, QMainWindow
class Movie:
"""
Represents a movie with its details such as name, director, release date, genre, rating, and URL.
Attributes:
- name: A string representing the name of the movie.
- director: A string representing the name of the director of the movie.
- release_date: A string representing the release date of the movie.
- genre: A string representing the genre of the movie.
- rating: An integer representing the rating of the movie.
- url: A string representing the URL of the movie.
"""
def __init__(self, name, director, release_date, genre, rating, url):
"""
Initializes a Movie object with the provided details.
Parameters:
- name: A string representing the name of the movie.
- director: A string representing the name of the director of the movie.
- release_date: A string representing the release date of the movie.
- genre: A string representing the genre of the movie.
- rating: An integer representing the rating of the movie.
- url: A string representing the URL of the movie.
Returns:
None
"""
self.name = name
self.director = director
self.release_date = release_date
self.genre = genre
self.rating = rating
self.url = url