# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'D:\Dev\Picard\WinFile\TestTableCompile.ui'
#
# Created: Thu Jul 28 00:22:41 2011
#      by: PyQt4 UI code generator 4.8.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
  _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
  _fromUtf8 = lambda s: s

class Ui_WidgetName(object):
  def setupUi(self, WidgetName):
    WidgetName.setObjectName(_fromUtf8("WidgetName"))
    WidgetName.setWindowModality(QtCore.Qt.NonModal)
    WidgetName.setEnabled(True)
    WidgetName.resize(300, 250)
    sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding)
    sizePolicy.setHorizontalStretch(1)
    sizePolicy.setVerticalStretch(1)
    sizePolicy.setHeightForWidth(WidgetName.sizePolicy().hasHeightForWidth())
    WidgetName.setSizePolicy(sizePolicy)
    WidgetName.setMinimumSize(QtCore.QSize(1, 1))
    WidgetName.setMaximumSize(QtCore.QSize(500, 500))
    WidgetName.setSizeIncrement(QtCore.QSize(5, 5))
    WidgetName.setBaseSize(QtCore.QSize(100, 100))
    font = QtGui.QFont()
    font.setPointSize(10)
    font.setWeight(75)
    font.setItalic(True)
    font.setUnderline(True)
    font.setStrikeOut(True)
    font.setBold(True)
    WidgetName.setFont(font)
    WidgetName.setCursor(QtCore.Qt.WaitCursor)
    WidgetName.setMouseTracking(False)
    WidgetName.setFocusPolicy(QtCore.Qt.TabFocus)
    WidgetName.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
    WidgetName.setAcceptDrops(True)
    WidgetName.setWindowTitle(_fromUtf8("Test Form"))
    WidgetName.setWindowOpacity(0.9)
    WidgetName.setToolTip(_fromUtf8("Test Form tooltip"))
    WidgetName.setStatusTip(_fromUtf8("Test Form statusTip"))
    WidgetName.setWhatsThis(_fromUtf8("Test Form whatsThis"))
    WidgetName.setLayoutDirection(QtCore.Qt.LeftToRight)
    WidgetName.setAutoFillBackground(False)
    WidgetName.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
    WidgetName.setWindowFilePath(_fromUtf8("windowFilePath"))
    WidgetName.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhEmailCharactersOnly|QtCore.Qt.ImhExclusiveInputMask|QtCore.Qt.ImhFormattedNumbersOnly|QtCore.Qt.ImhHiddenText|QtCore.Qt.ImhLowercaseOnly|QtCore.Qt.ImhNoAutoUppercase|QtCore.Qt.ImhNoPredictiveText|QtCore.Qt.ImhPreferLowercase|QtCore.Qt.ImhPreferNumbers|QtCore.Qt.ImhPreferUppercase|QtCore.Qt.ImhUppercaseOnly|QtCore.Qt.ImhUrlCharactersOnly)
    self.tableWidget = QtGui.QTableWidget(WidgetName)
    self.tableWidget.setEnabled(True)
    self.tableWidget.setGeometry(QtCore.QRect(9, 12, 256, 192))
    sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding)
    sizePolicy.setHorizontalStretch(1)
    sizePolicy.setVerticalStretch(1)
    sizePolicy.setHeightForWidth(self.tableWidget.sizePolicy().hasHeightForWidth())
    self.tableWidget.setSizePolicy(sizePolicy)
    self.tableWidget.setMinimumSize(QtCore.QSize(1, 1))
    self.tableWidget.setMaximumSize(QtCore.QSize(1024, 1024))
    self.tableWidget.setSizeIncrement(QtCore.QSize(3, 3))
    self.tableWidget.setBaseSize(QtCore.QSize(2, 2))
    palette = QtGui.QPalette()
    brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
    brush = QtGui.QBrush(QtGui.QColor(240, 240, 240, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
    brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush)
    brush = QtGui.QBrush(QtGui.QColor(227, 227, 227, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush)
    brush = QtGui.QBrush(QtGui.QColor(160, 160, 160, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush)
    brush = QtGui.QBrush(QtGui.QColor(160, 160, 160, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush)
    brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
    brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText, brush)
    brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush)
    brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
    brush = QtGui.QBrush(QtGui.QColor(240, 240, 240, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
    brush = QtGui.QBrush(QtGui.QColor(105, 105, 105, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush)
    brush = QtGui.QBrush(QtGui.QColor(51, 153, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Highlight, brush)
    brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.HighlightedText, brush)
    brush = QtGui.QBrush(QtGui.QColor(0, 0, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Link, brush)
    brush = QtGui.QBrush(QtGui.QColor(255, 0, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.LinkVisited, brush)
    brush = QtGui.QBrush(QtGui.QColor(246, 246, 246, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase, brush)
    brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.NoRole, brush)
    brush = QtGui.QBrush(QtGui.QColor(255, 255, 220, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase, brush)
    brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText, brush)
    brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
    brush = QtGui.QBrush(QtGui.QColor(240, 240, 240, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
    brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush)
    brush = QtGui.QBrush(QtGui.QColor(227, 227, 227, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight, brush)
    brush = QtGui.QBrush(QtGui.QColor(160, 160, 160, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush)
    brush = QtGui.QBrush(QtGui.QColor(160, 160, 160, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush)
    brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
    brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText, brush)
    brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush)
    brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
    brush = QtGui.QBrush(QtGui.QColor(240, 240, 240, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
    brush = QtGui.QBrush(QtGui.QColor(105, 105, 105, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush)
    brush = QtGui.QBrush(QtGui.QColor(51, 153, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Highlight, brush)
    brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.HighlightedText, brush)
    brush = QtGui.QBrush(QtGui.QColor(0, 0, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Link, brush)
    brush = QtGui.QBrush(QtGui.QColor(255, 0, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.LinkVisited, brush)
    brush = QtGui.QBrush(QtGui.QColor(246, 246, 246, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase, brush)
    brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.NoRole, brush)
    brush = QtGui.QBrush(QtGui.QColor(255, 255, 220, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase, brush)
    brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText, brush)
    brush = QtGui.QBrush(QtGui.QColor(160, 160, 160, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
    brush = QtGui.QBrush(QtGui.QColor(240, 240, 240, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
    brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush)
    brush = QtGui.QBrush(QtGui.QColor(227, 227, 227, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight, brush)
    brush = QtGui.QBrush(QtGui.QColor(160, 160, 160, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush)
    brush = QtGui.QBrush(QtGui.QColor(160, 160, 160, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush)
    brush = QtGui.QBrush(QtGui.QColor(160, 160, 160, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
    brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText, brush)
    brush = QtGui.QBrush(QtGui.QColor(160, 160, 160, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush)
    brush = QtGui.QBrush(QtGui.QColor(240, 240, 240, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
    brush = QtGui.QBrush(QtGui.QColor(240, 240, 240, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
    brush = QtGui.QBrush(QtGui.QColor(105, 105, 105, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush)
    brush = QtGui.QBrush(QtGui.QColor(51, 153, 255))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Highlight, brush)
    brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.HighlightedText, brush)
    brush = QtGui.QBrush(QtGui.QColor(0, 0, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Link, brush)
    brush = QtGui.QBrush(QtGui.QColor(255, 0, 255, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.LinkVisited, brush)
    brush = QtGui.QBrush(QtGui.QColor(246, 246, 246, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase, brush)
    brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.NoRole, brush)
    brush = QtGui.QBrush(QtGui.QColor(255, 255, 220, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase, brush)
    brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 254))
    brush.setStyle(QtCore.Qt.SolidPattern)
    palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText, brush)
    self.tableWidget.setPalette(palette)
    font = QtGui.QFont()
    font.setFamily(_fromUtf8("MS Shell Dlg 2"))
    font.setPointSize(8)
    font.setWeight(75)
    font.setItalic(True)
    font.setUnderline(True)
    font.setStrikeOut(True)
    font.setBold(True)
    self.tableWidget.setFont(font)
    self.tableWidget.setProperty(_fromUtf8("cursor"), QtCore.Qt.IBeamCursor)
    self.tableWidget.setMouseTracking(True)
    self.tableWidget.setFocusPolicy(QtCore.Qt.TabFocus)
    self.tableWidget.setContextMenuPolicy(QtCore.Qt.PreventContextMenu)
    self.tableWidget.setAcceptDrops(True)
    self.tableWidget.setToolTip(_fromUtf8("table_tooltip"))
    self.tableWidget.setStatusTip(_fromUtf8("table_statustip"))
    self.tableWidget.setWhatsThis(_fromUtf8("table_whatsthis"))
    self.tableWidget.setLayoutDirection(QtCore.Qt.LeftToRight)
    self.tableWidget.setAutoFillBackground(True)
    self.tableWidget.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
    self.tableWidget.setInputMethodHints(QtCore.Qt.ImhDialableCharactersOnly|QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhEmailCharactersOnly|QtCore.Qt.ImhExclusiveInputMask|QtCore.Qt.ImhFormattedNumbersOnly|QtCore.Qt.ImhHiddenText|QtCore.Qt.ImhLowercaseOnly|QtCore.Qt.ImhNoAutoUppercase|QtCore.Qt.ImhNoPredictiveText|QtCore.Qt.ImhPreferLowercase|QtCore.Qt.ImhPreferNumbers|QtCore.Qt.ImhPreferUppercase|QtCore.Qt.ImhUppercaseOnly|QtCore.Qt.ImhUrlCharactersOnly)
    self.tableWidget.setFrameShape(QtGui.QFrame.StyledPanel)
    self.tableWidget.setFrameShadow(QtGui.QFrame.Sunken)
    self.tableWidget.setLineWidth(1)
    self.tableWidget.setMidLineWidth(0)
    self.tableWidget.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
    self.tableWidget.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
    self.tableWidget.setAutoScroll(True)
    self.tableWidget.setAutoScrollMargin(15)
    self.tableWidget.setEditTriggers(QtGui.QAbstractItemView.AllEditTriggers)
    self.tableWidget.setTabKeyNavigation(True)
    self.tableWidget.setProperty(_fromUtf8("showDropIndicator"), True)
    self.tableWidget.setDragEnabled(True)
    self.tableWidget.setDragDropOverwriteMode(True)
    self.tableWidget.setDragDropMode(QtGui.QAbstractItemView.InternalMove)
    self.tableWidget.setDefaultDropAction(QtCore.Qt.MoveAction)
    self.tableWidget.setAlternatingRowColors(True)
    self.tableWidget.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
    self.tableWidget.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
    self.tableWidget.setIconSize(QtCore.QSize(16, 16))
    self.tableWidget.setTextElideMode(QtCore.Qt.ElideMiddle)
    self.tableWidget.setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerItem)
    self.tableWidget.setHorizontalScrollMode(QtGui.QAbstractItemView.ScrollPerItem)
    self.tableWidget.setShowGrid(True)
    self.tableWidget.setGridStyle(QtCore.Qt.SolidLine)
    self.tableWidget.setWordWrap(True)
    self.tableWidget.setCornerButtonEnabled(True)
    self.tableWidget.setRowCount(2)
    self.tableWidget.setColumnCount(2)
    self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
    self.tableWidget.setColumnCount(2)
    self.tableWidget.setRowCount(2)
    item = QtGui.QTableWidgetItem()
    self.tableWidget.setVerticalHeaderItem(0, item)
    self.tableWidget.verticalHeaderItem(0).setText(_fromUtf8("Row1_text"))
    item = QtGui.QTableWidgetItem()
    self.tableWidget.setVerticalHeaderItem(1, item)
    item = QtGui.QTableWidgetItem()
    self.tableWidget.setHorizontalHeaderItem(0, item)
    self.tableWidget.horizontalHeaderItem(0).setText(_fromUtf8("Col1_text"))
    item = QtGui.QTableWidgetItem()
    self.tableWidget.setHorizontalHeaderItem(1, item)
    brush = QtGui.QBrush(QtGui.QColor(250, 250, 250, 250))
    brush.setStyle(QtCore.Qt.Dense1Pattern)
    brush = QtGui.QBrush(QtGui.QColor(5, 5, 5, 250))
    brush.setStyle(QtCore.Qt.Dense2Pattern)
    item = QtGui.QTableWidgetItem()
    item.setFlags(QtCore.Qt.ItemIsEditable|QtCore.Qt.ItemIsDragEnabled|QtCore.Qt.ItemIsDropEnabled|QtCore.Qt.ItemIsTristate)
    item.setCheckState(QtCore.Qt.PartiallyChecked)
    item.setBackground(brush)
    item.setForeground(brush)
    self.tableWidget.setItem(0, 0, item)
    self.tableWidget.item(0, 0).setText(_fromUtf8("r0c0_text"))
    brush = QtGui.QBrush(QtGui.QColor(249, 249, 249, 249))
    brush.setStyle(QtCore.Qt.DiagCrossPattern)
    brush = QtGui.QBrush(QtGui.QColor(6, 6, 6, 248))
    brush.setStyle(QtCore.Qt.Dense4Pattern)
    item = QtGui.QTableWidgetItem()
    item.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsEditable|QtCore.Qt.ItemIsDragEnabled|QtCore.Qt.ItemIsDropEnabled|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled|QtCore.Qt.ItemIsTristate)
    item.setCheckState(QtCore.Qt.Checked)
    item.setBackground(brush)
    item.setForeground(brush)
    self.tableWidget.setItem(1, 1, item)
    self.tableWidget.horizontalHeader().setVisible(True)
    self.tableWidget.horizontalHeader().setCascadingSectionResizes(False)
    self.tableWidget.horizontalHeader().setDefaultSectionSize(100)
    self.tableWidget.horizontalHeader().setHighlightSections(True)
    self.tableWidget.horizontalHeader().setMinimumSectionSize(30)
    self.tableWidget.horizontalHeader().setSortIndicatorShown(False)
    self.tableWidget.horizontalHeader().setStretchLastSection(False)
    self.tableWidget.verticalHeader().setVisible(True)
    self.tableWidget.verticalHeader().setCascadingSectionResizes(False)
    self.tableWidget.verticalHeader().setDefaultSectionSize(30)
    self.tableWidget.verticalHeader().setHighlightSections(True)
    self.tableWidget.verticalHeader().setMinimumSectionSize(17)
    self.tableWidget.verticalHeader().setSortIndicatorShown(False)
    self.tableWidget.verticalHeader().setStretchLastSection(False)

    self.retranslateUi(WidgetName)
    QtCore.QMetaObject.connectSlotsByName(WidgetName)

  def retranslateUi(self, WidgetName):
    self.tableWidget.setSortingEnabled(False)
    self.tableWidget.verticalHeaderItem(1).setText(QtGui.QApplication.translate("WidgetName", "Row2_text", "row2_text_disambig", QtGui.QApplication.UnicodeUTF8))
    self.tableWidget.horizontalHeaderItem(1).setText(QtGui.QApplication.translate("WidgetName", "Col2_text", "col2_text_disambig", QtGui.QApplication.UnicodeUTF8))
    __sortingEnabled = self.tableWidget.isSortingEnabled()
    self.tableWidget.setSortingEnabled(False)
    self.tableWidget.item(1, 1).setText(QtGui.QApplication.translate("WidgetName", "r1c1_text", "r1c1_text_disambig", QtGui.QApplication.UnicodeUTF8))
    self.tableWidget.setSortingEnabled(__sortingEnabled)


if __name__ == "__main__":
  import sys
  app = QtGui.QApplication(sys.argv)
  WidgetName = QtGui.QWidget()
  ui = Ui_WidgetName()
  ui.setupUi(WidgetName)
  WidgetName.show()
  sys.exit(app.exec_())

