src/eric7/Preferences/ViewProfileDialog.py

branch
eric7
changeset 10428
a071d4065202
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10427:3733e2b23cf7 10428:a071d4065202
20 20
21 def __init__(self, layout, editVisibilities, debugVisibilities, parent=None): 21 def __init__(self, layout, editVisibilities, debugVisibilities, parent=None):
22 """ 22 """
23 Constructor 23 Constructor
24 24
25 @param layout type of the window layout (string) 25 @param layout type of the window layout
26 @type str
26 @param editVisibilities list of flags giving the visibilities 27 @param editVisibilities list of flags giving the visibilities
27 of the various parts for the 'edit' view profile (list of boolean) 28 of the various parts for the 'edit' view profile
29 @type list of bool
28 @param debugVisibilities list of flags giving the visibilities 30 @param debugVisibilities list of flags giving the visibilities
29 of the various parts for the 'debug' view profile (list of boolean) 31 of the various parts for the 'debug' view profile
30 @param parent parent widget of this dialog (QWidget) 32 @type list of bool
33 @param parent parent widget of this dialog
34 @type QWidget
31 @exception ValueError raised to indicate an invalid layout 35 @exception ValueError raised to indicate an invalid layout
32 """ 36 """
33 super().__init__(parent) 37 super().__init__(parent)
34 38
35 if layout not in ("Toolboxes", "Sidebars"): 39 if layout not in ("Toolboxes", "Sidebars"):
59 def getVisibilities(self): 63 def getVisibilities(self):
60 """ 64 """
61 Public method to retrieve the visibilities configuration. 65 Public method to retrieve the visibilities configuration.
62 66
63 @return tuple of two lists giving the visibilities of the 67 @return tuple of two lists giving the visibilities of the
64 various parts (two lists of boolean) 68 various parts
69 @rtype list
65 """ 70 """
66 if self.__layout in ["Toolboxes", "Sidebars"]: 71 if self.__layout in ["Toolboxes", "Sidebars"]:
67 return ( 72 return (
68 # edit profile 73 # edit profile
69 [ 74 [

eric ide

mercurial