当前位置: 首页>>代码示例>>Python>>正文


Python KPushButton.setObjectName方法代码示例

本文整理汇总了Python中PyKDE4.kdeui.KPushButton.setObjectName方法的典型用法代码示例。如果您正苦于以下问题:Python KPushButton.setObjectName方法的具体用法?Python KPushButton.setObjectName怎么用?Python KPushButton.setObjectName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PyKDE4.kdeui.KPushButton的用法示例。


在下文中一共展示了KPushButton.setObjectName方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: Ui_Form

# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setObjectName [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")))
开发者ID:KDE,项目名称:kdeexamples,代码行数:28,代码来源:ui_textbrowser.py

示例2: Ui_Form

# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setObjectName [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))
开发者ID:alandmoore,项目名称:kliqtune-plasmoid,代码行数:62,代码来源:launcher_config_ui.py

示例3: Ui_connectForm

# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setObjectName [as 别名]
class Ui_connectForm(object):
    def setupUi(self, connectForm):
        connectForm.setObjectName(_fromUtf8("connectForm"))
        connectForm.resize(655, 33)
        connectForm.setWindowTitle(_fromUtf8(""))
        self.horizontalLayout = QtGui.QHBoxLayout(connectForm)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.closeButton = KPushButton(connectForm)
        self.closeButton.setFlat(True)
        self.closeButton.setObjectName(_fromUtf8("closeButton"))
        self.horizontalLayout.addWidget(self.closeButton)
        self.urlLabel = QtGui.QLabel(connectForm)
        self.urlLabel.setObjectName(_fromUtf8("urlLabel"))
        self.horizontalLayout.addWidget(self.urlLabel)
        self.danbooruUrlComboBox = KComboBox(connectForm)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.danbooruUrlComboBox.sizePolicy().hasHeightForWidth())
        self.danbooruUrlComboBox.setSizePolicy(sizePolicy)
        self.danbooruUrlComboBox.setEditable(False)
        self.danbooruUrlComboBox.setObjectName(_fromUtf8("danbooruUrlComboBox"))
        self.horizontalLayout.addWidget(self.danbooruUrlComboBox)
        self.userLabel = QtGui.QLabel(connectForm)
        self.userLabel.setObjectName(_fromUtf8("userLabel"))
        self.horizontalLayout.addWidget(self.userLabel)
        self.userLineEdit = KLineEdit(connectForm)
        self.userLineEdit.setObjectName(_fromUtf8("userLineEdit"))
        self.horizontalLayout.addWidget(self.userLineEdit)
        self.passwordLabel = QtGui.QLabel(connectForm)
        self.passwordLabel.setObjectName(_fromUtf8("passwordLabel"))
        self.horizontalLayout.addWidget(self.passwordLabel)
        self.passwdLineEdit = KLineEdit(connectForm)
        self.passwdLineEdit.setPasswordMode(True)
        self.passwdLineEdit.setObjectName(_fromUtf8("passwdLineEdit"))
        self.horizontalLayout.addWidget(self.passwdLineEdit)
        self.buttonBox = KDialogButtonBox(connectForm)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setCenterButtons(False)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.horizontalLayout.addWidget(self.buttonBox)

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

    def retranslateUi(self, connectForm):
        self.urlLabel.setText(kdecore.i18n(_fromUtf8("Danbooru URL")))
        self.userLabel.setText(kdecore.i18n(_fromUtf8("Username")))
        self.userLineEdit.setClickMessage(kdecore.i18n(_fromUtf8("Danbooru username (optional)")))
        self.passwordLabel.setText(kdecore.i18n(_fromUtf8("Password")))
        self.passwdLineEdit.setClickMessage(kdecore.i18n(_fromUtf8("Danbooru password (optional)")))
开发者ID:lbeltrame,项目名称:danbooru-client,代码行数:53,代码来源:ui_connectwidget.py

示例4: Ui_MainWindow

# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setObjectName [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))
开发者ID:joelewis,项目名称:QuickPress,代码行数:47,代码来源:post.py

示例5: Ui_Form

# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setObjectName [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"))
开发者ID:alandmoore,项目名称:textlaunch-plasmoid,代码行数:55,代码来源:launcher_config_ui.py

示例6: Ui_PoolWidget

# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setObjectName [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)
开发者ID:lbeltrame,项目名称:danbooru-client,代码行数:44,代码来源:ui_pooldock.py

示例7: Ui_ThumbnailArea

# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setObjectName [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")))
开发者ID:lbeltrame,项目名称:danbooru-client,代码行数:23,代码来源:ui_thumbnailarea.py

示例8: Ui_Form

# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setObjectName [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"))
开发者ID:cburgmer,项目名称:eclectus,代码行数:55,代码来源:UpdateUI.py

示例9: Ui_Form

# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setObjectName [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")))
开发者ID:BjornW,项目名称:autokey,代码行数:73,代码来源:hotkeysettings.py

示例10: Ui_FetchDialog

# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setObjectName [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")))
#.........这里部分代码省略.........
开发者ID:lbeltrame,项目名称:danbooru-client,代码行数:103,代码来源:ui_fetchwidget.py

示例11: Ui_Form

# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setObjectName [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")))
开发者ID:BjornW,项目名称:autokey,代码行数:64,代码来源:specialhotkeysettings.py

示例12: Ui_SettingsWidget

# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setObjectName [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&")))
开发者ID:BjornW,项目名称:autokey,代码行数:64,代码来源:settingswidget.py

示例13: Ui_VideoWidget

# 需要导入模块: from PyKDE4.kdeui import KPushButton [as 别名]
# 或者: from PyKDE4.kdeui.KPushButton import setObjectName [as 别名]
class Ui_VideoWidget(object):
    def setupUi(self, VideoWidget):
        VideoWidget.setObjectName(_fromUtf8("VideoWidget"))
        VideoWidget.resize(448, 554)
        VideoWidget.setWindowTitle(_fromUtf8(""))
        self.verticalLayout_2 = QtGui.QVBoxLayout(VideoWidget)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.videoFrame = QtGui.QFrame(VideoWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.videoFrame.sizePolicy().hasHeightForWidth())
        self.videoFrame.setSizePolicy(sizePolicy)
        self.videoFrame.setMinimumSize(QtCore.QSize(440, 330))
        self.videoFrame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.videoFrame.setFrameShadow(QtGui.QFrame.Raised)
        self.videoFrame.setObjectName(_fromUtf8("videoFrame"))
        self.verticalLayout_2.addWidget(self.videoFrame)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.sourceLabel = QtGui.QLabel(VideoWidget)
        self.sourceLabel.setObjectName(_fromUtf8("sourceLabel"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.LabelRole, self.sourceLabel)
        self.capsLabel = QtGui.QLabel(VideoWidget)
        self.capsLabel.setObjectName(_fromUtf8("capsLabel"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.LabelRole, self.capsLabel)
        self.capsInput = KIntNumInput(VideoWidget)
        self.capsInput.setObjectName(_fromUtf8("capsInput"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.FieldRole, self.capsInput)
        self.desintationLabel = QtGui.QLabel(VideoWidget)
        self.desintationLabel.setObjectName(_fromUtf8("desintationLabel"))
        self.formLayout.setWidget(10, QtGui.QFormLayout.LabelRole, self.desintationLabel)
        self.destinationRequester = KUrlRequester(VideoWidget)
        self.destinationRequester.setObjectName(_fromUtf8("destinationRequester"))
        self.formLayout.setWidget(10, QtGui.QFormLayout.FieldRole, self.destinationRequester)
        self.sourceRequester = KUrlRequester(VideoWidget)
        self.sourceRequester.setObjectName(_fromUtf8("sourceRequester"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.FieldRole, self.sourceRequester)
        self.sourceComboBox = KComboBox(VideoWidget)
        self.sourceComboBox.setObjectName(_fromUtf8("sourceComboBox"))
        self.sourceComboBox.addItem(_fromUtf8(""))
        self.sourceComboBox.addItem(_fromUtf8(""))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.sourceComboBox)
        self.label = QtGui.QLabel(VideoWidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label)
        self.chapterComboBox = KComboBox(VideoWidget)
        self.chapterComboBox.setObjectName(_fromUtf8("chapterComboBox"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.chapterComboBox)
        self.label_2 = QtGui.QLabel(VideoWidget)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_2)
        self.label_3 = QtGui.QLabel(VideoWidget)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3)
        self.titleComboBox = KComboBox(VideoWidget)
        self.titleComboBox.setObjectName(_fromUtf8("titleComboBox"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.titleComboBox)
        self.verticalLayout.addLayout(self.formLayout)
        self.captureButton = KPushButton(VideoWidget)
        self.captureButton.setObjectName(_fromUtf8("captureButton"))
        self.verticalLayout.addWidget(self.captureButton)
        self.verticalLayout_2.addLayout(self.verticalLayout)

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

    def retranslateUi(self, VideoWidget):
        self.sourceLabel.setText(kdecore.i18n(_fromUtf8("FIle")))
        self.capsLabel.setText(kdecore.i18n(_fromUtf8("Number of screencaps")))
        self.desintationLabel.setText(kdecore.i18n(_fromUtf8("Destination directory")))
        self.sourceComboBox.setItemText(0, kdecore.i18n(_fromUtf8("File")))
        self.sourceComboBox.setItemText(1, kdecore.i18n(_fromUtf8("DVD")))
        self.label.setText(kdecore.i18n(_fromUtf8("Source")))
        self.label_2.setText(kdecore.i18n(_fromUtf8("DVD chapter")))
        self.label_3.setText(kdecore.i18n(_fromUtf8("DVD title")))
        self.captureButton.setText(kdecore.i18n(_fromUtf8("Capture")))
开发者ID:lbeltrame,项目名称:kde-vlc-snapper,代码行数:82,代码来源:ui_capturewidget.py


注:本文中的PyKDE4.kdeui.KPushButton.setObjectName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。