QDialog object to edit text by using an editor window.
Definition at line 4 of file TextDialog.py.
def Vispa.Gui.TextDialog.TextDialog.__init__ |
( |
|
self, |
|
|
|
parent = None , |
|
|
|
title = "Edit text..." , |
|
|
|
text = "" , |
|
|
|
readonly = False , |
|
|
|
help = None |
|
) |
| |
Definition at line 7 of file TextDialog.py.
References reco::TrackResiduals.resize(), LayerHitMapCache::SimpleCache.resize(), EZMgrVL< T >.resize(), StorageAccount.resize, LocalCacheFile.resize(), EZMgrFL< T >.resize(), DavixFile.resize(), StorageAccountProxy.resize(), LStoreFile.resize(), edm::stream::impl::dummy_vec.resize(), DCacheFile.resize(), HGCDataFrame< D, S >.resize(), BXVector< const l1t::l1t::L1Candidate * >.resize(), BXVector< const l1t::l1t::Muon * >.resize(), BXVector< l1t::Tau >.resize(), BXVector< T >.resize(), BXVector< const GlobalExtBlk * >.resize(), BXVector< RegionalMuonCand >.resize(), BXVector< const l1t::l1t::EtSum * >.resize(), BXVector< l1t::Muon >.resize(), Storage.resize(), GsfMaterialEffectsUpdator.resize(), FEDRawData.resize(), lhef::HEPRUP.resize(), FTLDataFrameT< D, S, DECODE >.resize(), XrdFile.resize(), File.resize(), EZArrayFL< T >.resize(), EZArrayFL< GlobalPoint >.resize(), SiPixelClusterShapeCache.resize(), Phase2ITPixelClusterShapeCache.resize(), edm::DataFrameContainer.resize(), L1GctProcessor::Pipeline< T >.resize(), edm::VecArray< T, N >.resize(), VecArray< reco::TrackBase::TrackAlgorithm, reco::TrackBase::algoSize >.resize(), edm::VecArray< std::pair< int, int >, 9 >.resize(), edm::VecArray< edm::ProductID, 2 >.resize(), L1GtfeExtWord.resize(), reco::FlavorHistoryEvent.resize(), lhef::HEPEUP.resize(), edm::soa::Table< Args >.resize(), Json::Value.resize(), edmNew::DetSetVector< T >::FastFiller.resize(), edmNew::DetSetVector< T >::TSFastFiller.resize(), DetSetVector< SiStripCluster >.resize(), edmNew::DetSetVector< T >.resize(), DetSetVector< ClusterType >.resize(), const_iterator.resize(), DetSetVector< T >.resize(), DetSetVector< SiPixelCluster >.resize(), TrackingNtuple::DetIdCommon.resize(), TrackingNtuple::DetIdOTCommon.resize(), Vispa.Gui.VispaWidget.VispaWidget.resize(), and TrackingNtuple::DetIdStripOnly.resize().
7 def __init__(self, parent=None, title="Edit text...", text="", readonly=False, help=None):
8 super(TextDialog,self).
__init__(parent)
9 self.setWindowTitle(title)
13 self.
ok = QPushButton(
'Ok', self)
14 self.connect(self.
ok, SIGNAL(
'clicked()'), self.accept)
16 self.
cancel = QPushButton(
'Cancel', self)
17 self.connect(self.
cancel, SIGNAL(
'clicked()'), self.reject)
22 self.edit.setPlainText(self.
text)
24 layout.addWidget(self.
edit,0,0,1,4)
25 layout.addWidget(self.
ok,1,3)
27 layout.addWidget(self.
cancel,1,0)
30 self.setLayout(layout)
31 self.edit.setReadOnly(readonly)
33 self.edit.moveCursor(QTextCursor.End)
def __init__(self, parent=None, title="Edit text...", text="", readonly=False, help=None)