SkinningTools.UI.tearOff.editableTab

Module Contents

Classes

TabWidget

the tab widget that allows the user to unparent tabs in seperate dialogs

class SkinningTools.UI.tearOff.editableTab.TabWidget(parent=None)

the tab widget that allows the user to unparent tabs in seperate dialogs

tabAdded
tearOff
addGraphicsTab(self, text='NewTAB', changeCurrent=True, useIcon=None)

add a new tab with the correcet name and items attached

Parameters
  • text (string) – the title used in the tab

  • changeCurrent (bool) – if True will override the current index, if False will append the tab

  • useIcon (string) – if given will use an icon to display when the object is torn off

Returns

the widget that can be thrown around

Return type

QWidget

addView(self, text, index, inWidget)

add the new widget to the tab

Parameters
  • text (string) – the title used in the tab

  • index (int) – the index onto which the view should be added

  • inWidget (QWidget) – the widget to attach

clear(self)

make sure that the entire widget is cleared

setCustomTabBar(self)

set the custom tab bar that has correct orientations and tear off signals

viewAtIndex(self, index)

get the widget attached at current index

Returns

the current tabs widget

Return type

QWidget