src/eric7/WebBrowser/SpeedDial/Page.py

branch
eric7
changeset 10436
f6881d10e995
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10435:c712d09cc839 10436:f6881d10e995
15 15
16 def __init__(self, url="", title="", broken=False): 16 def __init__(self, url="", title="", broken=False):
17 """ 17 """
18 Constructor 18 Constructor
19 19
20 @param url URL of the page (string) 20 @param url URL of the page
21 @param title title of the page (string) 21 @type str
22 @param broken flag indicating a broken connection (boolean) 22 @param title title of the page
23 @type str
24 @param broken flag indicating a broken connection
25 @type bool
23 """ 26 """
24 self.url = url 27 self.url = url
25 self.title = title 28 self.title = title
26 self.broken = broken 29 self.broken = broken
27 30
28 def __eq__(self, other): 31 def __eq__(self, other):
29 """ 32 """
30 Special method implementing the equality operator. 33 Special method implementing the equality operator.
31 34
32 @param other reference to the other page object (Page) 35 @param other reference to the other page object
33 @return flag indicating equality (boolean) 36 @type Page
37 @return flag indicating equality
38 @rtype bool
34 """ 39 """
35 return self.title == other.title and self.url == other.url 40 return self.title == other.title and self.url == other.url
36 41
37 def isValid(self): 42 def isValid(self):
38 """ 43 """

eric ide

mercurial