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


Python kdeui.KPushButton类代码示例

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


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

示例1: Ui_connectForm

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,代码行数:51,代码来源:ui_connectwidget.py

示例2: Ui_Form

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,代码行数:26,代码来源:ui_textbrowser.py

示例3: MainFrame

class MainFrame(KVBox):

    """Class showing the use of KAboutKdeDialog."""

    def __init__(self, parent):
        KVBox.__init__(self, parent)
        self.help = QLabel(helpText, self)
        self.layout().setAlignment(self.help, Qt.AlignHCenter)

        hBox = KHBox(self)
        self.button = KPushButton(i18n("Show %s" % dialogName), hBox)
        self.button.setMaximumSize(250, 30)

        self.helpmenu = KHelpMenu(parent, "", False)
        self.button.clicked.connect(self.helpmenu.aboutKDE)
开发者ID:KDE,项目名称:pykde4,代码行数:15,代码来源:kaboutkdedialog.py

示例4: MainFrame

class MainFrame(KVBox):
    def __init__(self, parent):
        KVBox.__init__(self, parent)
        self.help = QLabel(helpText, self)
        self.layout().setAlignment(self.help, Qt.AlignHCenter)

        hBox = KHBox(self)
        self.button = KPushButton(i18n("Show %s" % dialogName), hBox)
        self.button.setMaximumSize(250, 30)

        self.connect(self.button, SIGNAL("clicked()"), self.showDialog)

    def showDialog(self):
        dlg = KAboutApplicationDialog(aboutData, self.parent())
        dlg.exec_()
开发者ID:stlsaint,项目名称:python-snippets,代码行数:15,代码来源:kaboutapplicationdialog.py

示例5: setupUi

    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)
开发者ID:BjornW,项目名称:autokey,代码行数:48,代码来源:specialhotkeysettings.py

示例6: __init__

    def __init__(self, page):
        super(PointAndClick, self).__init__(i18n("Point and Click"), page)

        layout = QHBoxLayout(self)
        self.button = KPushButton(i18n("Enable Point and Click"))
        self.button.setFixedSize(self.button.sizeHint())
        l = QLabel(
            i18n(
                "Click this button if Point and Click does not work. "
                "See Shift+F1 (What's This) for more information."
            )
        )
        l.setWordWrap(True)
        l.setWhatsThis(
            i18n(
                "On its first run, Frescobaldi tries to auto-configure Okular "
                "(which provides the PDF preview) to call Frescobaldi when a "
                "clickable object is clicked."
                "\n\n"
                "But this setting can get lost when you move Frescobaldi to a "
                "different location or when other applications reconfigure Okular."
                "\n\n"
                "Click this button to configure Frescobaldi as 'custom editor' "
                "inside Okular.  This works best when all instances of Okular are "
                "closed and the PDF preview has not yet been opened."
            )
        )
        self.button.setWhatsThis(l.whatsThis())
        self.button.clicked.connect(self.installOkularPartRC)
        layout.addWidget(self.button)
        layout.addWidget(l)
开发者ID:Alwnikrotikz,项目名称:lilykde,代码行数:31,代码来源:settings.py

示例7: setupUi

    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)
开发者ID:joelewis,项目名称:QuickPress,代码行数:35,代码来源:post.py

示例8: __init__

    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)
开发者ID:hlamer,项目名称:kate,代码行数:27,代码来源:color_chooser.py

示例9: setupUi

    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)
开发者ID:lbeltrame,项目名称:danbooru-client,代码行数:35,代码来源:ui_pooldock.py

示例10: __init__

 def __init__(self, *args, **kwargs):
     QWidget.__init__(self, *args, **kwargs)
     layout = QGridLayout(self)
     self.setLayout(layout)
     
     self.addButton = KPushButton(KStandardGuiItem.add())
     self.editButton = KPushButton(KStandardGuiItem.configure())
     self.removeButton = KPushButton(KStandardGuiItem.remove())
     self.listBox = QListWidget()
     
     layout.setContentsMargins(1, 1, 1, 1)
     layout.setSpacing(0)
     layout.addWidget(self.listBox, 0, 0, 4, 1)
     layout.addWidget(self.addButton, 0, 1)
     layout.addWidget(self.editButton, 1, 1)
     layout.addWidget(self.removeButton, 2, 1)
     
     @self.addButton.clicked.connect
     def addClicked():
         item = self.createItem()
         if self.openEditor(item):
             self.addItem(item)
             
     @self.editButton.clicked.connect
     def editClicked():
         item = self.listBox.currentItem()
         item and self.editItem(item)
     
     @self.removeButton.clicked.connect
     def removeClicked():
         item = self.listBox.currentItem()
         if item:
             self.removeItem(item)
     
     @self.listBox.itemDoubleClicked.connect
     def itemDoubleClicked(item):
         item and self.editItem(item)
         
     self.listBox.model().layoutChanged.connect(self.changed)
 
     def updateSelection():
         selected = bool(self.listBox.currentItem())
         self.editButton.setEnabled(selected)
         self.removeButton.setEnabled(selected)
     self.changed.connect(updateSelection)
     self.listBox.itemSelectionChanged.connect(updateSelection)
     updateSelection()
开发者ID:Alwnikrotikz,项目名称:lilykde,代码行数:47,代码来源:widgets.py

示例11: setupUi

    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)
开发者ID:alandmoore,项目名称:kliqtune-plasmoid,代码行数:47,代码来源:launcher_config_ui.py

示例12: PointAndClick

class PointAndClick(SettingsGroup):
    def __init__(self, page):
        super(PointAndClick, self).__init__(i18n("Point and Click"), page)

        layout = QHBoxLayout(self)
        self.button = KPushButton(i18n("Enable Point and Click"))
        self.button.setFixedSize(self.button.sizeHint())
        l = QLabel(
            i18n(
                "Click this button if Point and Click does not work. "
                "See Shift+F1 (What's This) for more information."
            )
        )
        l.setWordWrap(True)
        l.setWhatsThis(
            i18n(
                "On its first run, Frescobaldi tries to auto-configure Okular "
                "(which provides the PDF preview) to call Frescobaldi when a "
                "clickable object is clicked."
                "\n\n"
                "But this setting can get lost when you move Frescobaldi to a "
                "different location or when other applications reconfigure Okular."
                "\n\n"
                "Click this button to configure Frescobaldi as 'custom editor' "
                "inside Okular.  This works best when all instances of Okular are "
                "closed and the PDF preview has not yet been opened."
            )
        )
        self.button.setWhatsThis(l.whatsThis())
        self.button.clicked.connect(self.installOkularPartRC)
        layout.addWidget(self.button)
        layout.addWidget(l)

    def installOkularPartRC(self):
        import frescobaldi_app.install

        frescobaldi_app.install.installOkularPartRC()
        config("").writeEntry("configure okularpart", True)
        KMessageBox.information(
            self,
            i18n(
                "The Okular PDF preview has been reconfigured.\n\n"
                "If you already opened the PDF preview, "
                "restart Frescobaldi for the new settings to take effect."
            ),
        )
开发者ID:Alwnikrotikz,项目名称:lilykde,代码行数:46,代码来源:settings.py

示例13: __init__

    def __init__(self, parent):
        KVBox.__init__(self, parent)
        self.help = QLabel(helpText, self)
        self.layout().setAlignment(self.help, Qt.AlignHCenter)

        hBox = KHBox(self)
        self.button = KPushButton(i18n("Show %s" % dialogName), hBox)
        self.button.setMaximumSize(250, 30)

        self.connect(self.button, SIGNAL("clicked()"), self.showDialog)
开发者ID:stlsaint,项目名称:python-snippets,代码行数:10,代码来源:kaboutapplicationdialog.py

示例14: setupUi

    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)
开发者ID:cburgmer,项目名称:eclectus,代码行数:42,代码来源:UpdateUI.py

示例15: setupUi

    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)
开发者ID:alandmoore,项目名称:textlaunch-plasmoid,代码行数:42,代码来源:launcher_config_ui.py


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