本文整理匯總了Python中PyQt4.QtGui.QTabBar.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python QTabBar.__init__方法的具體用法?Python QTabBar.__init__怎麽用?Python QTabBar.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PyQt4.QtGui.QTabBar
的用法示例。
在下文中一共展示了QTabBar.__init__方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from PyQt4.QtGui import QTabBar [as 別名]
# 或者: from PyQt4.QtGui.QTabBar import __init__ [as 別名]
def __init__(self, parent, ancestor):
QTabBar.__init__(self, parent)
self.ancestor = ancestor
# Dragging tabs
self.__drag_start_pos = QPoint()
self.setAcceptDrops(True)
示例2: __init__
# 需要導入模塊: from PyQt4.QtGui import QTabBar [as 別名]
# 或者: from PyQt4.QtGui.QTabBar import __init__ [as 別名]
def __init__( self, parent = None ):
QTabBar.__init__( self, parent )
self.lineEdit = self.FramelessLineEdit( self )
self.currentTab = -1
self.connect( self.lineEdit, SIGNAL( 'returnPressed()' ), self.slotReturnPressed )
示例3: __init__
# 需要導入模塊: from PyQt4.QtGui import QTabBar [as 別名]
# 或者: from PyQt4.QtGui.QTabBar import __init__ [as 別名]
def __init__(self, parent = None):
"""
Constructor
@param parent reference to the parent widget (QWidget)
"""
QTabBar.__init__(self, parent)
self._tabWidget = parent
示例4: __init__
# 需要導入模塊: from PyQt4.QtGui import QTabBar [as 別名]
# 或者: from PyQt4.QtGui.QTabBar import __init__ [as 別名]
def __init__(self, parent):
" init class custom tab bar "
QTabBar.__init__(self, parent)
self._editor = QLineEdit(self)
self._editor.setToolTip(" Type a Tab Name ")
self._editor.setWindowFlags(Qt.Popup)
self._editor.setFocusProxy(self)
self._editor.editingFinished.connect(self.handleEditingFinished)
self._editor.installEventFilter(self)
示例5: __init__
# 需要導入模塊: from PyQt4.QtGui import QTabBar [as 別名]
# 或者: from PyQt4.QtGui.QTabBar import __init__ [as 別名]
def __init__(self, parent=None, *args, **kwargs):
"""
Reset tab text orientation on initialization
:param width: Remove default width parameter in kwargs
:param height: Remove default height parameter in kwargs
"""
self.tabSize = QSize(kwargs.pop('width', 100), kwargs.pop('height', 25))
QTabBar.__init__(self, parent, *args, **kwargs)
示例6: __init__
# 需要導入模塊: from PyQt4.QtGui import QTabBar [as 別名]
# 或者: from PyQt4.QtGui.QTabBar import __init__ [as 別名]
def __init__(self,parent):
QTabBar.__init__(self,parent)
self.setAcceptDrops(True)
self.setMouseTracking(True)
示例7: __init__
# 需要導入模塊: from PyQt4.QtGui import QTabBar [as 別名]
# 或者: from PyQt4.QtGui.QTabBar import __init__ [as 別名]
def __init__(self, parent=None):
QTabBar.__init__(self,parent)
示例8: __init__
# 需要導入模塊: from PyQt4.QtGui import QTabBar [as 別名]
# 或者: from PyQt4.QtGui.QTabBar import __init__ [as 別名]
def __init__(self):
QTabBar.__init__(self)
self.tabTimer = QTimer()
self.connect(self.tabTimer, SIGNAL('timeout()'), self.__selectTab)
self.setAcceptDrops(True)
示例9: __init__
# 需要導入模塊: from PyQt4.QtGui import QTabBar [as 別名]
# 或者: from PyQt4.QtGui.QTabBar import __init__ [as 別名]
def __init__(self,parent):
QTabBar.__init__(self,parent)
self.setAcceptDrops(True)