本文整理汇总了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)