CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AbstractTab.py
Go to the documentation of this file.
2  """ Abstract class for tabs to which a TabController can be attached.
3  """
4  def __init__(self):
5  self._controller = None
6  self._tabWidget = None
7  self._mainWindow = None
8 
9  def setController(self, controller):
10  """ Attaches a controller to the Tab,
11 
12  The controller() variable of the Tab and the tab() variable of the controller are set.
13  """
14  self._controller = controller
15  self._controller.setTab(self)
16 
17  def controller(self):
18  return self._controller
19 
20  def setTabWidget(self, widget):
21  """ Sets the tabWidget variable, which is returned by tabWidget().
22  """
23  self._tabWidget = widget
24 
25  def tabWidget(self):
26  """ Returns the tabWidget set by setTabWidget().
27 
28  Important for updating the tab's label etc.
29  """
30  return self._tabWidget
31 
32  def setMainWindow(self, main):
33  """Sets the mainWindow variable, which is returned by mainWindow().
34  """
35  self._mainWindow = main
36 
37  def mainWindow(self):
38  """Returns the main window widget.
39 
40  Especially for dialog boxes.
41  """
42  return self._mainWindow
43 
list object
Definition: dbtoconf.py:77