Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
GuiBrowsers
python
Vispa
Main
AbstractTab.py
Go to the documentation of this file.
1
class
AbstractTab
(
object
):
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
Vispa.Main.AbstractTab.AbstractTab.__init__
def __init__
Definition:
AbstractTab.py:4
Vispa.Main.AbstractTab.AbstractTab.setMainWindow
def setMainWindow
Definition:
AbstractTab.py:32
Vispa.Main.AbstractTab.AbstractTab.controller
def controller
Definition:
AbstractTab.py:17
Vispa.Main.AbstractTab.AbstractTab._tabWidget
_tabWidget
Definition:
AbstractTab.py:6
Vispa.Main.AbstractTab.AbstractTab
Definition:
AbstractTab.py:1
Vispa.Main.AbstractTab.AbstractTab._controller
_controller
Definition:
AbstractTab.py:5
Vispa.Main.AbstractTab.AbstractTab.setTabWidget
def setTabWidget
Definition:
AbstractTab.py:20
Vispa.Main.AbstractTab.AbstractTab.tabWidget
def tabWidget
Definition:
AbstractTab.py:25
dbtoconf.object
list object
Definition:
dbtoconf.py:77
Vispa.Main.AbstractTab.AbstractTab.mainWindow
def mainWindow
Definition:
AbstractTab.py:37
Vispa.Main.AbstractTab.AbstractTab._mainWindow
_mainWindow
Definition:
AbstractTab.py:7
Vispa.Main.AbstractTab.AbstractTab.setController
def setController
Definition:
AbstractTab.py:9
Generated for CMSSW Reference Manual by
1.8.5