本文整理汇总了Python中PyKDE4.kdeui.KPushButton.setText方法的典型用法代码示例。如果您正苦于以下问题:Python KPushButton.setText方法的具体用法?Python KPushButton.setText怎么用?Python KPushButton.setText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyKDE4.kdeui.KPushButton
的用法示例。
在下文中一共展示了KPushButton.setText方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Ui_Form
# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setText [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(632, 411)
self.tableWidget = QtGui.QTableWidget(Form)
self.tableWidget.setGeometry(QtCore.QRect(30, 20, 591, 301))
self.tableWidget.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
self.tableWidget.setColumnCount(4)
self.tableWidget.setObjectName("tableWidget")
self.tableWidget.setColumnCount(4)
self.tableWidget.setRowCount(0)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(0, item)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(1, item)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(2, item)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(3, item)
self.tableWidget.horizontalHeader().setStretchLastSection(True)
self.horizontalLayoutWidget = QtGui.QWidget(Form)
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(29, 320, 591, 31))
self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
self.horizontalLayout.setObjectName("horizontalLayout")
self.add_button = KPushButton(self.horizontalLayoutWidget)
self.add_button.setObjectName("add_button")
self.horizontalLayout.addWidget(self.add_button)
self.remove_button = KPushButton(self.horizontalLayoutWidget)
self.remove_button.setEnabled(False)
self.remove_button.setObjectName("remove_button")
self.horizontalLayout.addWidget(self.remove_button)
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.move_up_button = KPushButton(self.horizontalLayoutWidget)
self.move_up_button.setEnabled(False)
self.move_up_button.setObjectName("move_up_button")
self.horizontalLayout.addWidget(self.move_up_button)
self.move_down_button = KPushButton(self.horizontalLayoutWidget)
self.move_down_button.setEnabled(False)
self.move_down_button.setObjectName("move_down_button")
self.horizontalLayout.addWidget(self.move_down_button)
self.export_button = KPushButton(Form)
self.export_button.setGeometry(QtCore.QRect(30, 370, 111, 26))
self.export_button.setObjectName("export_button")
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
self.tableWidget.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("Form", "Icon", None, QtGui.QApplication.UnicodeUTF8))
self.tableWidget.horizontalHeaderItem(1).setText(QtGui.QApplication.translate("Form", "Button Text", None, QtGui.QApplication.UnicodeUTF8))
self.tableWidget.horizontalHeaderItem(2).setText(QtGui.QApplication.translate("Form", "Media URL", None, QtGui.QApplication.UnicodeUTF8))
self.tableWidget.horizontalHeaderItem(3).setText(QtGui.QApplication.translate("Form", "ToolTip Comment", None, QtGui.QApplication.UnicodeUTF8))
self.add_button.setText(QtGui.QApplication.translate("Form", "add", None, QtGui.QApplication.UnicodeUTF8))
self.remove_button.setText(QtGui.QApplication.translate("Form", "remove", None, QtGui.QApplication.UnicodeUTF8))
self.move_up_button.setText(QtGui.QApplication.translate("Form", "Move Up", None, QtGui.QApplication.UnicodeUTF8))
self.move_down_button.setText(QtGui.QApplication.translate("Form", "Move Down", None, QtGui.QApplication.UnicodeUTF8))
self.export_button.setText(QtGui.QApplication.translate("Form", "Export to file", None, QtGui.QApplication.UnicodeUTF8))
示例2: Ui_Form
# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setText [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(400, 300)
self.verticalLayout = QtGui.QVBoxLayout(Form)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.textWidget = KTextEdit(Form)
self.textWidget.setEnabled(True)
self.textWidget.setReadOnly(True)
self.textWidget.setAcceptRichText(False)
self.textWidget.setObjectName(_fromUtf8("textWidget"))
self.verticalLayout.addWidget(self.textWidget)
self.downloadButton = KPushButton(Form)
self.downloadButton.setObjectName(_fromUtf8("downloadButton"))
self.verticalLayout.addWidget(self.downloadButton)
self.clearButton = KPushButton(Form)
self.clearButton.setObjectName(_fromUtf8("clearButton"))
self.verticalLayout.addWidget(self.clearButton)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(kdecore.i18n(_fromUtf8("Form")))
self.downloadButton.setText(kdecore.i18n(_fromUtf8("Start example")))
self.clearButton.setText(kdecore.i18n(_fromUtf8("Clear")))
示例3: Ui_MainWindow
# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setText [as 别名]
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(530, 413)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.BodyEdit = QtGui.QTextEdit(self.centralwidget)
self.BodyEdit.setGeometry(QtCore.QRect(10, 20, 511, 301))
self.BodyEdit.setMinimumSize(QtCore.QSize(0, 301))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Ubuntu"))
self.BodyEdit.setFont(font)
self.BodyEdit.setAutoFillBackground(False)
self.BodyEdit.setInputMethodHints(QtCore.Qt.ImhUrlCharactersOnly)
self.BodyEdit.setFrameShape(QtGui.QFrame.StyledPanel)
self.BodyEdit.setFrameShadow(QtGui.QFrame.Raised)
self.BodyEdit.setLineWidth(1)
self.BodyEdit.setTabChangesFocus(True)
self.BodyEdit.setObjectName(_fromUtf8("BodyEdit"))
self.TitleEdit = QtGui.QLineEdit(self.centralwidget)
self.TitleEdit.setGeometry(QtCore.QRect(12, 330, 411, 27))
self.TitleEdit.setAccessibleName(_fromUtf8(""))
self.TitleEdit.setObjectName(_fromUtf8("TitleEdit"))
self.postbutton = KPushButton(self.centralwidget)
self.postbutton.setGeometry(QtCore.QRect(430, 330, 91, 31))
self.postbutton.setObjectName(_fromUtf8("postbutton"))
self.label = QtGui.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(20, 360, 501, 17))
self.label.setObjectName(_fromUtf8("label"))
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "Wordpress Quick Post", None, QtGui.QApplication.UnicodeUTF8))
self.BodyEdit.setStatusTip(QtGui.QApplication.translate("MainWindow", "Content...", None, QtGui.QApplication.UnicodeUTF8))
self.BodyEdit.setWhatsThis(QtGui.QApplication.translate("MainWindow", "Enter the Content of your post", None, QtGui.QApplication.UnicodeUTF8))
self.TitleEdit.setToolTip(QtGui.QApplication.translate("MainWindow", "Title...", None, QtGui.QApplication.UnicodeUTF8))
self.TitleEdit.setStatusTip(QtGui.QApplication.translate("MainWindow", "Title...", None, QtGui.QApplication.UnicodeUTF8))
self.postbutton.setText(QtGui.QApplication.translate("MainWindow", "Post", None, QtGui.QApplication.UnicodeUTF8))
self.label.setText(QtGui.QApplication.translate("MainWindow", "status...", None, QtGui.QApplication.UnicodeUTF8))
示例4: Ui_Form
# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setText [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(544, 313)
self.verticalLayout = QtGui.QVBoxLayout(Form)
self.verticalLayout.setObjectName("verticalLayout")
self.tableWidget = QtGui.QTableWidget(Form)
self.tableWidget.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
self.tableWidget.setColumnCount(3)
self.tableWidget.setObjectName("tableWidget")
self.tableWidget.setColumnCount(3)
self.tableWidget.setRowCount(0)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(0, item)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(1, item)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(2, item)
self.tableWidget.horizontalHeader().setStretchLastSection(True)
self.verticalLayout.addWidget(self.tableWidget)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.add_button = KPushButton(Form)
self.add_button.setObjectName("add_button")
self.horizontalLayout.addWidget(self.add_button)
self.remove_button = KPushButton(Form)
self.remove_button.setEnabled(False)
self.remove_button.setObjectName("remove_button")
self.horizontalLayout.addWidget(self.remove_button)
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.move_up_button = KPushButton(Form)
self.move_up_button.setEnabled(False)
self.move_up_button.setObjectName("move_up_button")
self.horizontalLayout.addWidget(self.move_up_button)
self.move_down_button = KPushButton(Form)
self.move_down_button.setEnabled(False)
self.move_down_button.setObjectName("move_down_button")
self.horizontalLayout.addWidget(self.move_down_button)
self.verticalLayout.addLayout(self.horizontalLayout)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(kdecore.i18n("Form"))
self.tableWidget.horizontalHeaderItem(0).setText(kdecore.i18n("Button Title"))
self.tableWidget.horizontalHeaderItem(1).setText(kdecore.i18n("Command"))
self.tableWidget.horizontalHeaderItem(2).setText(kdecore.i18n("Comment"))
self.add_button.setText(kdecore.i18n("add"))
self.remove_button.setText(kdecore.i18n("remove"))
self.move_up_button.setText(kdecore.i18n("Move Up"))
self.move_down_button.setText(kdecore.i18n("Move Down"))
示例5: Ui_PoolWidget
# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setText [as 别名]
class Ui_PoolWidget(object):
def setupUi(self, PoolWidget):
PoolWidget.setObjectName(_fromUtf8("PoolWidget"))
PoolWidget.resize(540, 275)
PoolWidget.setWindowTitle(_fromUtf8(""))
self.gridLayout = QtGui.QGridLayout(PoolWidget)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.fetchButton = KPushButton(PoolWidget)
self.fetchButton.setText(kdecore.i18n(_fromUtf8("Fetch more pools")))
self.fetchButton.setObjectName(_fromUtf8("fetchButton"))
self.gridLayout.addWidget(self.fetchButton, 0, 0, 1, 1)
spacerItem = QtGui.QSpacerItem(430, 22, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem, 0, 1, 1, 1)
self.poolTable = QtGui.QTableWidget(PoolWidget)
self.poolTable.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
self.poolTable.setObjectName(_fromUtf8("poolTable"))
self.poolTable.setColumnCount(4)
self.poolTable.setRowCount(0)
item = QtGui.QTableWidgetItem()
item.setText(kdecore.i18n(_fromUtf8("ID")))
self.poolTable.setHorizontalHeaderItem(0, item)
item = QtGui.QTableWidgetItem()
item.setText(kdecore.i18n(_fromUtf8("Name")))
self.poolTable.setHorizontalHeaderItem(1, item)
item = QtGui.QTableWidgetItem()
item.setText(kdecore.i18n(_fromUtf8("Posts")))
self.poolTable.setHorizontalHeaderItem(2, item)
item = QtGui.QTableWidgetItem()
item.setText(kdecore.i18n(_fromUtf8("Description")))
self.poolTable.setHorizontalHeaderItem(3, item)
self.poolTable.horizontalHeader().setVisible(True)
self.poolTable.verticalHeader().setVisible(False)
self.gridLayout.addWidget(self.poolTable, 1, 0, 1, 2)
self.retranslateUi(PoolWidget)
QtCore.QMetaObject.connectSlotsByName(PoolWidget)
def retranslateUi(self, PoolWidget):
item = self.poolTable.horizontalHeaderItem(0)
item = self.poolTable.horizontalHeaderItem(1)
item = self.poolTable.horizontalHeaderItem(2)
item = self.poolTable.horizontalHeaderItem(3)
示例6: __init__
# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setText [as 别名]
def __init__ (self):
KMainWindow.__init__ (self)
self.result = ""
self.resize (640, 480)
label = QLabel ("Search", self)
label.setGeometry (10,10,200,20)
self.searchBox = KLineEdit(self)
self.searchBox.setGeometry(50,8,520,25)
self.connect(self.searchBox, SIGNAL("returnPressed()"),self.search)
searchButton = KPushButton(self)
searchButton.setGeometry(570,6,70,25)
searchButton.setText("Search")
self.connect (searchButton, SIGNAL("clicked()"), self.search)
self.resultList = KListWidget(self)
self.resultList.setGeometry(10,50,620,400)
self.connect(self.resultList, SIGNAL("itemDoubleClicked(QListWidgetItem*)"), self.playSelected)
示例7: Ui_ThumbnailArea
# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setText [as 别名]
class Ui_ThumbnailArea(object):
def setupUi(self, ThumbnailArea):
ThumbnailArea.setObjectName(_fromUtf8("ThumbnailArea"))
ThumbnailArea.resize(570, 502)
ThumbnailArea.setWindowTitle(_fromUtf8(""))
self.gridLayout = QtGui.QGridLayout(ThumbnailArea)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.thumbnailTabWidget = KTabWidget(ThumbnailArea)
self.thumbnailTabWidget.setObjectName(_fromUtf8("thumbnailTabWidget"))
self.gridLayout.addWidget(self.thumbnailTabWidget, 0, 0, 1, 2)
self.spacerItem = QtGui.QSpacerItem(370, 21, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.gridLayout.addItem(self.spacerItem, 1, 0, 1, 1)
self.nextPageButton = KPushButton(ThumbnailArea)
self.nextPageButton.setObjectName(_fromUtf8("nextPageButton"))
self.gridLayout.addWidget(self.nextPageButton, 1, 1, 1, 1)
self.retranslateUi(ThumbnailArea)
QtCore.QMetaObject.connectSlotsByName(ThumbnailArea)
def retranslateUi(self, ThumbnailArea):
self.nextPageButton.setText(kdecore.i18n(_fromUtf8("Add Page")))
示例8: Ui_Form
# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setText [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(508, 94)
self.verticalLayout = QtGui.QVBoxLayout(Form)
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.dictionaryCombo = QtGui.QComboBox(Form)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.dictionaryCombo.sizePolicy().hasHeightForWidth())
self.dictionaryCombo.setSizePolicy(sizePolicy)
self.dictionaryCombo.setObjectName("dictionaryCombo")
self.horizontalLayout.addWidget(self.dictionaryCombo)
self.checkVersionButton = KPushButton(Form)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.checkVersionButton.sizePolicy().hasHeightForWidth())
self.checkVersionButton.setSizePolicy(sizePolicy)
self.checkVersionButton.setObjectName("checkVersionButton")
self.horizontalLayout.addWidget(self.checkVersionButton)
self.removeButton = KPushButton(Form)
self.removeButton.setObjectName("removeButton")
self.horizontalLayout.addWidget(self.removeButton)
self.installButton = KPushButton(Form)
self.installButton.setEnabled(False)
self.installButton.setObjectName("installButton")
self.horizontalLayout.addWidget(self.installButton)
self.verticalLayout.addLayout(self.horizontalLayout)
self.statusLabel = KSqueezedTextLabel(Form)
self.statusLabel.setObjectName("statusLabel")
self.verticalLayout.addWidget(self.statusLabel)
self.progressBar = QtGui.QProgressBar(Form)
self.progressBar.setProperty("value", QtCore.QVariant(24))
self.progressBar.setInvertedAppearance(False)
self.progressBar.setObjectName("progressBar")
self.verticalLayout.addWidget(self.progressBar)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(kdecore.i18n("Form"))
self.checkVersionButton.setToolTip(kdecore.i18n("Check the online resource for a newer version."))
self.checkVersionButton.setWhatsThis(kdecore.i18n("Check the online resource for a newer version."))
self.checkVersionButton.setText(kdecore.i18n("&Check for newer"))
self.removeButton.setText(kdecore.i18n("&Remove"))
self.installButton.setToolTip(kdecore.i18n("Download and install the selected dictionary."))
self.installButton.setWhatsThis(kdecore.i18n("Download and install the selected dictionary."))
self.installButton.setText(kdecore.i18n("&Install"))
示例9: Ui_Form
# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setText [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(400, 300)
self.verticalLayout = QtGui.QVBoxLayout(Form)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.modsLabel = QtGui.QLabel(Form)
self.modsLabel.setObjectName(_fromUtf8("modsLabel"))
self.verticalLayout.addWidget(self.modsLabel)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setContentsMargins(-1, -1, -1, 10)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.controlButton = KPushButton(Form)
self.controlButton.setCheckable(True)
self.controlButton.setChecked(False)
self.controlButton.setObjectName(_fromUtf8("controlButton"))
self.horizontalLayout.addWidget(self.controlButton)
self.altButton = KPushButton(Form)
self.altButton.setCheckable(True)
self.altButton.setChecked(False)
self.altButton.setObjectName(_fromUtf8("altButton"))
self.horizontalLayout.addWidget(self.altButton)
self.shiftButton = KPushButton(Form)
self.shiftButton.setCheckable(True)
self.shiftButton.setChecked(False)
self.shiftButton.setObjectName(_fromUtf8("shiftButton"))
self.horizontalLayout.addWidget(self.shiftButton)
self.superButton = KPushButton(Form)
self.superButton.setCheckable(True)
self.superButton.setChecked(False)
self.superButton.setObjectName(_fromUtf8("superButton"))
self.horizontalLayout.addWidget(self.superButton)
self.hyperButton = KPushButton(Form)
self.hyperButton.setCheckable(True)
self.hyperButton.setChecked(False)
self.hyperButton.setObjectName(_fromUtf8("hyperButton"))
self.horizontalLayout.addWidget(self.hyperButton)
self.metaButton = KPushButton(Form)
self.metaButton.setCheckable(True)
self.metaButton.setChecked(False)
self.metaButton.setObjectName(_fromUtf8("metaButton"))
self.horizontalLayout.addWidget(self.metaButton)
self.verticalLayout.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setContentsMargins(-1, -1, -1, 5)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.keyLabel = QtGui.QLabel(Form)
self.keyLabel.setObjectName(_fromUtf8("keyLabel"))
self.horizontalLayout_2.addWidget(self.keyLabel)
self.setButton = QtGui.QPushButton(Form)
self.setButton.setObjectName(_fromUtf8("setButton"))
self.horizontalLayout_2.addWidget(self.setButton)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.kseparator = KSeparator(Form)
self.kseparator.setObjectName(_fromUtf8("kseparator"))
self.verticalLayout.addWidget(self.kseparator)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(kdecore.i18n(_fromUtf8("Form")))
self.modsLabel.setText(kdecore.i18n(_fromUtf8("Modifiers:")))
self.controlButton.setText(kdecore.i18n(_fromUtf8("Control")))
self.altButton.setText(kdecore.i18n(_fromUtf8("Alt")))
self.shiftButton.setText(kdecore.i18n(_fromUtf8("Shift")))
self.superButton.setText(kdecore.i18n(_fromUtf8("Super")))
self.hyperButton.setText(kdecore.i18n(_fromUtf8("Hyper")))
self.metaButton.setText(kdecore.i18n(_fromUtf8("Meta")))
self.keyLabel.setText(kdecore.i18n(_fromUtf8("Key: %s")))
self.setButton.setText(kdecore.i18n(_fromUtf8("Press to set")))
示例10: ColorChooser
# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setText [as 别名]
class ColorChooser(QFrame):
'''
Completion-like widget to quick select hexadecimal colors used in a document
TODO Make cell/widget size configurable?
'''
colorSelected = pyqtSignal(QColor)
def __init__(self, parent):
super(ColorChooser, self).__init__(parent)
self.colors = KColorCells(self, 1, 1)
self.colors.setAcceptDrags(False)
self.colors.setEditTriggers(self.colors.NoEditTriggers)
self.otherBtn = KPushButton(self)
self.otherBtn.setText(i18nc('@action:button', '&Other...'))
layout = QVBoxLayout(self)
layout.addWidget(self.colors)
layout.addWidget(self.otherBtn)
self.setFocusPolicy(Qt.StrongFocus)
self.setFrameShape(QFrame.Panel)
self.setWindowFlags(Qt.FramelessWindowHint | Qt.Popup);
# Subscribe to observe widget events
# - open KColorDialog on 'Other...' button click
self.otherBtn.clicked.connect(self.show_color_dialog)
# - select color by RMB click or ENTER on keyboard
self.colors.cellActivated.connect(self.color_selected)
self.installEventFilter(self)
def setColors(self, colors):
if len(colors):
rows, columns = _calc_dimensions_for_items_count(len(colors))
else:
self.hide()
self.show_color_dialog(True)
return
self.colors.setColumnCount(columns)
self.colors.setRowCount(rows)
self.colors.setMinimumSize(20 * columns, 25 * rows)
self.updateGeometry()
self.adjustSize()
self.colors.resizeColumnsToContents()
self.colors.resizeRowsToContents()
# Fill color cells
for i, color in enumerate(colors):
self.colors.setColor(i, color)
_set_tooltips(rows, columns, self.colors) # Set tooltips for all valid color cells
self.colors.setFocus() # Give a focus to widget
self.show() # Show it!
@pyqtSlot(bool)
def show_color_dialog(self, f):
'''Get color using KColorDialog'''
# Preselect last used color
color = QColor(kate.sessionConfiguration[_INSERT_COLOR_LCC])
result = KColorDialog.getColor(color)
if result == KColorDialog.Accepted: # Did user press OK?
self.emitSelectedColorHideSelf(color)
@pyqtSlot(int, int)
def color_selected(self, row, column):
'''Smth has selected in KColorCells'''
color = self.colors.item(row, column).data(Qt.BackgroundRole)
#kate.kDebug('ColorUtils: activated row={}, column={}, color={}'.format(row, column, color))
self.emitSelectedColorHideSelf(color)
def emitSelectedColorHideSelf(self, color):
# Remember last selected color for future preselect
kate.sessionConfiguration[_INSERT_COLOR_LCC] = color.name()
self.colorSelected.emit(color)
self.hide()
def eventFilter(self, obj, event):
'''Hide self on Esc key'''
if event.type() == QEvent.KeyPress and event.key() == Qt.Key_Escape:
self.hide()
return True
return super(ColorChooser, self).eventFilter(obj, event)
def moveAround(self, position):
'''Smart positioning self around cursor'''
self.colors.resizeColumnsToContents()
self.colors.resizeRowsToContents()
mwg = kate.mainWindow().geometry()
wc = mwg.center()
pos = mwg.topLeft() + position
pos.setY(pos.y() + 40)
if wc.y() < pos.y():
pos.setY(pos.y() - self.height())
if wc.x() < pos.x():
pos.setX(pos.x() - self.width())
self.move(pos)
示例11: Ui_FetchDialog
# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setText [as 别名]
class Ui_FetchDialog(object):
def setupUi(self, FetchDialog):
FetchDialog.setObjectName(_fromUtf8("FetchDialog"))
FetchDialog.resize(662, 31)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(FetchDialog.sizePolicy().hasHeightForWidth())
FetchDialog.setSizePolicy(sizePolicy)
FetchDialog.setWindowTitle(_fromUtf8(""))
self.horizontalLayout = QtGui.QHBoxLayout(FetchDialog)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.closeButton = KPushButton(FetchDialog)
self.closeButton.setFlat(True)
self.closeButton.setObjectName(_fromUtf8("closeButton"))
self.horizontalLayout.addWidget(self.closeButton)
self.ratingLabel = QtGui.QLabel(FetchDialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.ratingLabel.sizePolicy().hasHeightForWidth())
self.ratingLabel.setSizePolicy(sizePolicy)
self.ratingLabel.setObjectName(_fromUtf8("ratingLabel"))
self.horizontalLayout.addWidget(self.ratingLabel)
self.ratingComboBox = KComboBox(FetchDialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.ratingComboBox.sizePolicy().hasHeightForWidth())
self.ratingComboBox.setSizePolicy(sizePolicy)
self.ratingComboBox.setObjectName(_fromUtf8("ratingComboBox"))
self.ratingComboBox.addItem(_fromUtf8(""))
self.ratingComboBox.addItem(_fromUtf8(""))
self.ratingComboBox.addItem(_fromUtf8(""))
self.horizontalLayout.addWidget(self.ratingComboBox)
self.postLabel = QtGui.QLabel(FetchDialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.postLabel.sizePolicy().hasHeightForWidth())
self.postLabel.setSizePolicy(sizePolicy)
self.postLabel.setObjectName(_fromUtf8("postLabel"))
self.horizontalLayout.addWidget(self.postLabel)
self.postSpinBox = KIntSpinBox(FetchDialog)
self.postSpinBox.setMinimum(1)
self.postSpinBox.setMaximum(100)
self.postSpinBox.setObjectName(_fromUtf8("postSpinBox"))
self.horizontalLayout.addWidget(self.postSpinBox)
self.tagLabel = QtGui.QLabel(FetchDialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tagLabel.sizePolicy().hasHeightForWidth())
self.tagLabel.setSizePolicy(sizePolicy)
self.tagLabel.setObjectName(_fromUtf8("tagLabel"))
self.horizontalLayout.addWidget(self.tagLabel)
self.tagLineEdit = KLineEdit(FetchDialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tagLineEdit.sizePolicy().hasHeightForWidth())
self.tagLineEdit.setSizePolicy(sizePolicy)
self.tagLineEdit.setObjectName(_fromUtf8("tagLineEdit"))
self.horizontalLayout.addWidget(self.tagLineEdit)
self.downloadButton = KPushButton(FetchDialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.downloadButton.sizePolicy().hasHeightForWidth())
self.downloadButton.setSizePolicy(sizePolicy)
self.downloadButton.setObjectName(_fromUtf8("downloadButton"))
self.horizontalLayout.addWidget(self.downloadButton)
self.retranslateUi(FetchDialog)
QtCore.QMetaObject.connectSlotsByName(FetchDialog)
def retranslateUi(self, FetchDialog):
self.ratingLabel.setText(kdecore.i18n(_fromUtf8("Maximum rating: ")))
self.ratingComboBox.setItemText(0, kdecore.i18n(_fromUtf8("Safe")))
self.ratingComboBox.setItemText(1, kdecore.i18n(_fromUtf8("Questionable")))
self.ratingComboBox.setItemText(2, kdecore.i18n(_fromUtf8("Explicit")))
self.postLabel.setText(kdecore.i18n(_fromUtf8("Posts to retrieve:")))
self.postSpinBox.setToolTip(kdecore.i18n(_fromUtf8("Number of posts to retrieve (max 100)")))
self.postSpinBox.setWhatsThis(
kdecore.i18n(
_fromUtf8(
"The number of posts to retrieve. Notice that Danbooru limits the maximum number of posts to 100."
)
)
)
self.tagLabel.setText(kdecore.i18n(_fromUtf8("Tags:")))
self.tagLineEdit.setToolTip(kdecore.i18n(_fromUtf8("Tags to include in search (optional)")))
self.tagLineEdit.setWhatsThis(
kdecore.i18n(
_fromUtf8(
"Input here the tags that should be used when looking for posts. Separate them with commas, without spaces."
)
)
)
self.tagLineEdit.setClickMessage(kdecore.i18n(_fromUtf8("Tags, comma separated")))
#.........这里部分代码省略.........
示例12: Ui_Form
# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setText [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(531, 397)
self.verticalLayout = QtGui.QVBoxLayout(Form)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.groupBox = QtGui.QGroupBox(Form)
self.groupBox.setObjectName(_fromUtf8("groupBox"))
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.label = QtGui.QLabel(self.groupBox)
self.label.setObjectName(_fromUtf8("label"))
self.horizontalLayout_2.addWidget(self.label)
self.monitorKeyLabel = QtGui.QLabel(self.groupBox)
self.monitorKeyLabel.setObjectName(_fromUtf8("monitorKeyLabel"))
self.horizontalLayout_2.addWidget(self.monitorKeyLabel)
spacerItem = QtGui.QSpacerItem(269, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem)
self.setMonitorButton = KPushButton(self.groupBox)
self.setMonitorButton.setObjectName(_fromUtf8("setMonitorButton"))
self.horizontalLayout_2.addWidget(self.setMonitorButton)
self.clearMonitorButton = KPushButton(self.groupBox)
self.clearMonitorButton.setObjectName(_fromUtf8("clearMonitorButton"))
self.horizontalLayout_2.addWidget(self.clearMonitorButton)
self.verticalLayout.addWidget(self.groupBox)
self.groupBox_2 = QtGui.QGroupBox(Form)
self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox_2)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.label_2 = QtGui.QLabel(self.groupBox_2)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.horizontalLayout.addWidget(self.label_2)
self.configKeyLabel = QtGui.QLabel(self.groupBox_2)
self.configKeyLabel.setObjectName(_fromUtf8("configKeyLabel"))
self.horizontalLayout.addWidget(self.configKeyLabel)
spacerItem1 = QtGui.QSpacerItem(269, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
self.setConfigButton = KPushButton(self.groupBox_2)
self.setConfigButton.setObjectName(_fromUtf8("setConfigButton"))
self.horizontalLayout.addWidget(self.setConfigButton)
self.clearConfigButton = KPushButton(self.groupBox_2)
self.clearConfigButton.setObjectName(_fromUtf8("clearConfigButton"))
self.horizontalLayout.addWidget(self.clearConfigButton)
self.verticalLayout.addWidget(self.groupBox_2)
spacerItem2 = QtGui.QSpacerItem(20, 224, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.verticalLayout.addItem(spacerItem2)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(kdecore.i18n(_fromUtf8("Form")))
self.groupBox.setTitle(kdecore.i18n(_fromUtf8("Toggle monitoring using a hotkey")))
self.label.setText(kdecore.i18n(_fromUtf8("Hotkey: ")))
self.monitorKeyLabel.setText(kdecore.i18n(_fromUtf8("$hotkey")))
self.setMonitorButton.setText(kdecore.i18n(_fromUtf8("Set")))
self.clearMonitorButton.setText(kdecore.i18n(_fromUtf8("Clear")))
self.groupBox_2.setTitle(kdecore.i18n(_fromUtf8("Show configuration window using a hotkey")))
self.label_2.setText(kdecore.i18n(_fromUtf8("Hotkey: ")))
self.configKeyLabel.setText(kdecore.i18n(_fromUtf8("$hotkey")))
self.setConfigButton.setText(kdecore.i18n(_fromUtf8("Set")))
self.clearConfigButton.setText(kdecore.i18n(_fromUtf8("Clear")))
示例13: ColorChooser
# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setText [as 别名]
class ColorChooser(QFrame):
'''
Completion-like widget to quick select hexadecimal colors used in a document
TODO Make cell/widget size configurable?
'''
_INSERT_COLOR_LCC = 'insertColor:lastUsedColor'
colorSelected = pyqtSignal(QColor)
def __init__(self):
super(ColorChooser, self).__init__(None)
self.colors = KColorCells(self, 1, 1)
self.colors.setAcceptDrags(False)
self.colors.setEditTriggers(self.colors.NoEditTriggers)
self.otherBtn = KPushButton(self)
self.otherBtn.setText(i18nc('@action:button', '&Other...'))
layout = QVBoxLayout(self)
layout.addWidget(self.colors)
layout.addWidget(self.otherBtn)
self.setFocusPolicy(Qt.StrongFocus)
self.setFrameShape(QFrame.Panel)
self.setWindowFlags(Qt.FramelessWindowHint | Qt.Popup)
# Set default value for last used #color if not configured yet
if ColorChooser._INSERT_COLOR_LCC not in kate.sessionConfiguration:
kate.sessionConfiguration[ColorChooser._INSERT_COLOR_LCC] = '#ffffff'
# Subscribe to observe widget events
# - open KColorDialog on 'Other...' button click
self.otherBtn.clicked.connect(self._show_color_dialog)
# - select color by RMB click or ENTER on keyboard
self.colors.cellActivated.connect(self._color_selected)
# -
self.colorSelected.connect(self._insert_color_into_active_document)
self.installEventFilter(self)
def __del__(self):
mw = kate.mainInterfaceWindow()
if mw:
self.blockSignals(True)
self.removeEventFilter(self)
def updateColors(self, document):
'''Scan a given document and collect unique colors
Returns a list of QColor objects.
'''
result = []
# Iterate over document's lines trying to find #colors
for l in range(0, document.lines()):
line = document.line(l) # Get the current line
start = 0 # Set initial position to 0 (line start)
while start < len(line): # Repeat 'till the line end
start = line.find('#', start) # Try to find a '#' character (start of #color)
if start == -1: # Did we found smth?
break # No! Nothing to do...
# Try to get a word right after the '#' char
end = start + 1
for c in line[end:]:
if not (c in string.hexdigits or c in string.ascii_letters):
break
end += 1
color_range = KTextEditor.Range(l, start, l, end)
color_str = document.text(color_range)
color = QColor(color_str)
if color.isValid() and color not in result:
result.append(color)
kate.kDebug('ColorUtils: scan for #colors found {}'.format(color_str))
start = end
self._set_colors(result)
def moveAround(self, position):
'''Smart positioning self around cursor'''
self.colors.resizeColumnsToContents()
self.colors.resizeRowsToContents()
mwg = kate.mainWindow().geometry()
wc = mwg.center()
pos = mwg.topLeft() + position
pos.setY(pos.y() + 40)
if wc.y() < pos.y():
pos.setY(pos.y() - self.height())
if wc.x() < pos.x():
pos.setX(pos.x() - self.width())
self.move(pos)
def emitSelectedColorHideSelf(self, color):
# Remember last selected color for future preselect
kate.sessionConfiguration[ColorChooser._INSERT_COLOR_LCC] = color.name()
self.colorSelected.emit(color)
self.hide()
#.........这里部分代码省略.........
示例14: MainWindow
# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setText [as 别名]
class MainWindow(QtGui.QMainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.scanned_image = None
self.scanned_pil = None
self.colors = None
self.setupUi()
self.saveButton.clicked.connect(self.close)
self.actionQuit.activated.connect(self.close)
self.scanButton.clicked.connect(self.scan)
self.resetColorsButton.clicked.connect(self.resetColors)
self.numColorSlider.valueChanged.connect(self.updateNumColors)
self.connect(self.previewView, SIGNAL("resize()"), self.updatePreview)
def setupUi(self):
self.centralwidget = QtGui.QWidget(self)
self.scanButton = KPushButton()
self.nColorLabel = QtGui.QLabel()
self.numColorSlider = QtGui.QSlider(Qt.Horizontal)
self.numColorSlider.setMinimum(2)
self.numColorSlider.setTracking(False)
self.resetColorsButton = KPushButton()
scanSettingsLayout = QtGui.QHBoxLayout()
scanSettingsLayout.addWidget(self.scanButton)
scanSettingsLayout.addWidget(self.numColorSlider)
scanSettingsLayout.addWidget(self.nColorLabel)
scanSettingsLayout.addWidget(self.resetColorsButton)
colorSpacerLeft = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.colorEditorCells = KColorCells(self.centralwidget, 16, 16)
colorSpacerRight = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
colorEditorLayout = QtGui.QHBoxLayout()
colorEditorLayout.addItem(colorSpacerLeft)
colorEditorLayout.addWidget(self.colorEditorCells, 0)
colorEditorLayout.addItem(colorSpacerRight)
self.previewView = ResizableImageLabel(self.centralwidget)
self.previewView.setMinimumSize(QtCore.QSize(400, 400))
self.baseFileNameRequester = KUrlRequester(self.centralwidget)
self.FileSeqSpinBox = KIntSpinBox(self.centralwidget)
filenameLayout = QtGui.QHBoxLayout()
filenameLayout.addWidget(self.baseFileNameRequester)
filenameLayout.addWidget(self.FileSeqSpinBox)
self.generatedOutputNameTextLabel = QtGui.QLabel(self.centralwidget)
self.generatedOutputNameLabel = QtGui.QLabel(self.centralwidget)
outputNameLayout = QtGui.QHBoxLayout()
outputNameLayout.addWidget(self.generatedOutputNameLabel)
outputNameLayout.addWidget(self.generatedOutputNameTextLabel)
spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.saveButton = KPushButton(self.centralwidget)
saveButtonLayout = QtGui.QHBoxLayout()
saveButtonLayout.addItem(spacerItem1)
saveButtonLayout.addWidget(self.saveButton)
verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
verticalLayout.setMargin(0)
verticalLayout.addLayout(scanSettingsLayout, 0)
verticalLayout.addLayout(colorEditorLayout, 0)
verticalLayout.addWidget(self.previewView, 1)
verticalLayout.addLayout(filenameLayout, 0)
verticalLayout.addLayout(outputNameLayout, 0)
verticalLayout.addLayout(saveButtonLayout, 0)
self.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(self)
self.menubar.setGeometry(QtCore.QRect(0, 0, 474, 20))
self.menuFile = QtGui.QMenu(self.menubar)
self.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(self)
self.statusbar.setMinimumSize(QtCore.QSize(0, 20))
self.setStatusBar(self.statusbar)
self.actionQuit = QtGui.QAction(self)
self.menuFile.addAction(self.actionQuit)
self.menubar.addAction(self.menuFile.menuAction())
self.retranslateUi()
def retranslateUi(self):
self.setWindowTitle(kdecore.i18n(_fromUtf8("MainWindow")))
self.scanButton.setText(kdecore.i18n(_fromUtf8("Scan")))
self.resetColorsButton.setText(kdecore.i18n(_fromUtf8("Reset")))
self.generatedOutputNameTextLabel.setText(kdecore.i18n(_fromUtf8("Output:")))
self.generatedOutputNameLabel.setText(kdecore.i18n(_fromUtf8("generated_output_file_name")))
self.saveButton.setText(kdecore.i18n(_fromUtf8("Save")))
self.menuFile.setTitle(kdecore.i18n(_fromUtf8("File")))
self.actionQuit.setText(kdecore.i18n(_fromUtf8("Quit")))
#.........这里部分代码省略.........
示例15: Ui_SettingsWidget
# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setText [as 别名]
class Ui_SettingsWidget(object):
def setupUi(self, SettingsWidget):
SettingsWidget.setObjectName(_fromUtf8("SettingsWidget"))
SettingsWidget.resize(316, 91)
self.gridLayout = QtGui.QGridLayout(SettingsWidget)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.label = QtGui.QLabel(SettingsWidget)
self.label.setObjectName(_fromUtf8("label"))
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
self.abbrLabel = QtGui.QLabel(SettingsWidget)
self.abbrLabel.setObjectName(_fromUtf8("abbrLabel"))
self.gridLayout.addWidget(self.abbrLabel, 0, 1, 1, 1)
self.setAbbrButton = KPushButton(SettingsWidget)
self.setAbbrButton.setObjectName(_fromUtf8("setAbbrButton"))
self.gridLayout.addWidget(self.setAbbrButton, 0, 3, 1, 1)
self.clearAbbrButton = KPushButton(SettingsWidget)
self.clearAbbrButton.setObjectName(_fromUtf8("clearAbbrButton"))
self.gridLayout.addWidget(self.clearAbbrButton, 0, 4, 1, 1)
self.label_2 = QtGui.QLabel(SettingsWidget)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
self.hotkeyLabel = QtGui.QLabel(SettingsWidget)
self.hotkeyLabel.setObjectName(_fromUtf8("hotkeyLabel"))
self.gridLayout.addWidget(self.hotkeyLabel, 1, 1, 1, 1)
self.setHotkeyButton = KPushButton(SettingsWidget)
self.setHotkeyButton.setObjectName(_fromUtf8("setHotkeyButton"))
self.gridLayout.addWidget(self.setHotkeyButton, 1, 3, 1, 1)
self.clearHotkeyButton = KPushButton(SettingsWidget)
self.clearHotkeyButton.setObjectName(_fromUtf8("clearHotkeyButton"))
self.gridLayout.addWidget(self.clearHotkeyButton, 1, 4, 1, 1)
self.label_3 = QtGui.QLabel(SettingsWidget)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
self.windowFilterLabel = QtGui.QLabel(SettingsWidget)
self.windowFilterLabel.setObjectName(_fromUtf8("windowFilterLabel"))
self.gridLayout.addWidget(self.windowFilterLabel, 2, 1, 1, 1)
self.setFilterButton = KPushButton(SettingsWidget)
self.setFilterButton.setObjectName(_fromUtf8("setFilterButton"))
self.gridLayout.addWidget(self.setFilterButton, 2, 3, 1, 1)
self.clearFilterButton = KPushButton(SettingsWidget)
self.clearFilterButton.setObjectName(_fromUtf8("clearFilterButton"))
self.gridLayout.addWidget(self.clearFilterButton, 2, 4, 1, 1)
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem, 0, 2, 1, 1)
self.retranslateUi(SettingsWidget)
QtCore.QMetaObject.connectSlotsByName(SettingsWidget)
def retranslateUi(self, SettingsWidget):
SettingsWidget.setWindowTitle(kdecore.i18n(_fromUtf8("Form")))
self.label.setText(kdecore.i18n(_fromUtf8("Abbreviations:")))
self.abbrLabel.setText(kdecore.i18n(_fromUtf8("$abbr")))
self.setAbbrButton.setText(kdecore.i18n(_fromUtf8("Set&")))
self.clearAbbrButton.setText(kdecore.i18n(_fromUtf8("Clear&")))
self.label_2.setText(kdecore.i18n(_fromUtf8("Hotkey:")))
self.hotkeyLabel.setText(kdecore.i18n(_fromUtf8("$hotkey")))
self.setHotkeyButton.setText(kdecore.i18n(_fromUtf8("Set&")))
self.clearHotkeyButton.setText(kdecore.i18n(_fromUtf8("Clear&")))
self.label_3.setText(kdecore.i18n(_fromUtf8("Window Filter:")))
self.windowFilterLabel.setText(kdecore.i18n(_fromUtf8("$filter")))
self.setFilterButton.setText(kdecore.i18n(_fromUtf8("Set&")))
self.clearFilterButton.setText(kdecore.i18n(_fromUtf8("Clear&")))