mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-15 08:31:57 -05:00
Add QTabWidget to example
This commit is contained in:
parent
9558e3d230
commit
b0fd09d657
@ -16,6 +16,19 @@
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="tabsClosable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab">
|
||||
<attribute name="title">
|
||||
<string>Tab 1</string>
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="title">
|
||||
<string>GroupBox</string>
|
||||
@ -71,7 +84,14 @@
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="tab_2">
|
||||
<attribute name="title">
|
||||
<string>Tab 2</string>
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0">
|
||||
<widget class="QGroupBox" name="groupBox_2">
|
||||
<property name="title">
|
||||
<string>GroupBox</string>
|
||||
@ -122,6 +142,10 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="menubar">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
|
@ -44,6 +44,7 @@ sys.path.insert(0, abspath(dirname(abspath(__file__)) + '/..'))
|
||||
import qdarkstyle
|
||||
import example_pyqt_ui as example_ui
|
||||
|
||||
print(qdarkstyle.__file__)
|
||||
|
||||
def main():
|
||||
"""
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
# Form implementation generated from reading ui file 'example.ui'
|
||||
#
|
||||
# Created: Sun Jan 26 15:54:23 2014
|
||||
# Created: Thu Jan 30 08:26:03 2014
|
||||
# by: PyQt4 UI code generator 4.10.3
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
@ -31,7 +31,14 @@ class Ui_MainWindow(object):
|
||||
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
|
||||
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.centralwidget)
|
||||
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
|
||||
self.groupBox = QtGui.QGroupBox(self.centralwidget)
|
||||
self.tabWidget = QtGui.QTabWidget(self.centralwidget)
|
||||
self.tabWidget.setTabsClosable(True)
|
||||
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
|
||||
self.tab = QtGui.QWidget()
|
||||
self.tab.setObjectName(_fromUtf8("tab"))
|
||||
self.gridLayout = QtGui.QGridLayout(self.tab)
|
||||
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
|
||||
self.groupBox = QtGui.QGroupBox(self.tab)
|
||||
self.groupBox.setObjectName(_fromUtf8("groupBox"))
|
||||
self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox)
|
||||
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
|
||||
@ -57,8 +64,13 @@ class Ui_MainWindow(object):
|
||||
item = QtGui.QListWidgetItem()
|
||||
self.listWidget.addItem(item)
|
||||
self.verticalLayout_3.addWidget(self.listWidget)
|
||||
self.horizontalLayout_2.addWidget(self.groupBox)
|
||||
self.groupBox_2 = QtGui.QGroupBox(self.centralwidget)
|
||||
self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1)
|
||||
self.tabWidget.addTab(self.tab, _fromUtf8(""))
|
||||
self.tab_2 = QtGui.QWidget()
|
||||
self.tab_2.setObjectName(_fromUtf8("tab_2"))
|
||||
self.gridLayout_2 = QtGui.QGridLayout(self.tab_2)
|
||||
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
|
||||
self.groupBox_2 = QtGui.QGroupBox(self.tab_2)
|
||||
self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
|
||||
self.verticalLayout_4 = QtGui.QVBoxLayout(self.groupBox_2)
|
||||
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
|
||||
@ -76,7 +88,9 @@ class Ui_MainWindow(object):
|
||||
item_0 = QtGui.QTreeWidgetItem(self.treeWidget)
|
||||
item_0 = QtGui.QTreeWidgetItem(self.treeWidget)
|
||||
self.verticalLayout_4.addWidget(self.treeWidget)
|
||||
self.horizontalLayout_2.addWidget(self.groupBox_2)
|
||||
self.gridLayout_2.addWidget(self.groupBox_2, 0, 0, 1, 1)
|
||||
self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
|
||||
self.horizontalLayout_2.addWidget(self.tabWidget)
|
||||
MainWindow.setCentralWidget(self.centralwidget)
|
||||
self.menubar = QtGui.QMenuBar(MainWindow)
|
||||
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 25))
|
||||
@ -154,6 +168,7 @@ class Ui_MainWindow(object):
|
||||
self.menubar.addAction(self.menuMenu.menuAction())
|
||||
|
||||
self.retranslateUi(MainWindow)
|
||||
self.tabWidget.setCurrentIndex(0)
|
||||
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
||||
|
||||
def retranslateUi(self, MainWindow):
|
||||
@ -178,6 +193,7 @@ class Ui_MainWindow(object):
|
||||
item = self.listWidget.item(7)
|
||||
item.setText(_translate("MainWindow", "New Item", None))
|
||||
self.listWidget.setSortingEnabled(__sortingEnabled)
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Tab 1", None))
|
||||
self.groupBox_2.setTitle(_translate("MainWindow", "GroupBox", None))
|
||||
self.label.setText(_translate("MainWindow", "TextLabel", None))
|
||||
self.radioButton.setText(_translate("MainWindow", "RadioButton", None))
|
||||
@ -188,6 +204,7 @@ class Ui_MainWindow(object):
|
||||
self.treeWidget.topLevelItem(0).setText(0, _translate("MainWindow", "qzd", None))
|
||||
self.treeWidget.topLevelItem(1).setText(0, _translate("MainWindow", "effefe", None))
|
||||
self.treeWidget.setSortingEnabled(__sortingEnabled)
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Tab 2", None))
|
||||
self.menuMenu.setTitle(_translate("MainWindow", "Menu", None))
|
||||
self.menuSubmenu_2.setTitle(_translate("MainWindow", "Submenu 2", None))
|
||||
self.pushButton_2.setText(_translate("MainWindow", "PushButton", None))
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
# Form implementation generated from reading ui file 'example.ui'
|
||||
#
|
||||
# Created: Sun Jan 26 15:54:23 2014
|
||||
# Created: Thu Jan 30 08:26:03 2014
|
||||
# by: pyside-uic 0.2.14 running on PySide 1.1.2
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
@ -17,7 +17,14 @@ class Ui_MainWindow(object):
|
||||
self.centralwidget.setObjectName("centralwidget")
|
||||
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.centralwidget)
|
||||
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||
self.groupBox = QtGui.QGroupBox(self.centralwidget)
|
||||
self.tabWidget = QtGui.QTabWidget(self.centralwidget)
|
||||
self.tabWidget.setTabsClosable(True)
|
||||
self.tabWidget.setObjectName("tabWidget")
|
||||
self.tab = QtGui.QWidget()
|
||||
self.tab.setObjectName("tab")
|
||||
self.gridLayout = QtGui.QGridLayout(self.tab)
|
||||
self.gridLayout.setObjectName("gridLayout")
|
||||
self.groupBox = QtGui.QGroupBox(self.tab)
|
||||
self.groupBox.setObjectName("groupBox")
|
||||
self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox)
|
||||
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||
@ -35,8 +42,13 @@ class Ui_MainWindow(object):
|
||||
QtGui.QListWidgetItem(self.listWidget)
|
||||
QtGui.QListWidgetItem(self.listWidget)
|
||||
self.verticalLayout_3.addWidget(self.listWidget)
|
||||
self.horizontalLayout_2.addWidget(self.groupBox)
|
||||
self.groupBox_2 = QtGui.QGroupBox(self.centralwidget)
|
||||
self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1)
|
||||
self.tabWidget.addTab(self.tab, "")
|
||||
self.tab_2 = QtGui.QWidget()
|
||||
self.tab_2.setObjectName("tab_2")
|
||||
self.gridLayout_2 = QtGui.QGridLayout(self.tab_2)
|
||||
self.gridLayout_2.setObjectName("gridLayout_2")
|
||||
self.groupBox_2 = QtGui.QGroupBox(self.tab_2)
|
||||
self.groupBox_2.setObjectName("groupBox_2")
|
||||
self.verticalLayout_4 = QtGui.QVBoxLayout(self.groupBox_2)
|
||||
self.verticalLayout_4.setObjectName("verticalLayout_4")
|
||||
@ -54,7 +66,9 @@ class Ui_MainWindow(object):
|
||||
item_0 = QtGui.QTreeWidgetItem(self.treeWidget)
|
||||
item_0 = QtGui.QTreeWidgetItem(self.treeWidget)
|
||||
self.verticalLayout_4.addWidget(self.treeWidget)
|
||||
self.horizontalLayout_2.addWidget(self.groupBox_2)
|
||||
self.gridLayout_2.addWidget(self.groupBox_2, 0, 0, 1, 1)
|
||||
self.tabWidget.addTab(self.tab_2, "")
|
||||
self.horizontalLayout_2.addWidget(self.tabWidget)
|
||||
MainWindow.setCentralWidget(self.centralwidget)
|
||||
self.menubar = QtGui.QMenuBar(MainWindow)
|
||||
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 25))
|
||||
@ -132,6 +146,7 @@ class Ui_MainWindow(object):
|
||||
self.menubar.addAction(self.menuMenu.menuAction())
|
||||
|
||||
self.retranslateUi(MainWindow)
|
||||
self.tabWidget.setCurrentIndex(0)
|
||||
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
||||
|
||||
def retranslateUi(self, MainWindow):
|
||||
@ -148,6 +163,7 @@ class Ui_MainWindow(object):
|
||||
self.listWidget.item(6).setText(QtGui.QApplication.translate("MainWindow", "New Item", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.listWidget.item(7).setText(QtGui.QApplication.translate("MainWindow", "New Item", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.listWidget.setSortingEnabled(__sortingEnabled)
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QtGui.QApplication.translate("MainWindow", "Tab 1", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.groupBox_2.setTitle(QtGui.QApplication.translate("MainWindow", "GroupBox", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label.setText(QtGui.QApplication.translate("MainWindow", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.radioButton.setText(QtGui.QApplication.translate("MainWindow", "RadioButton", None, QtGui.QApplication.UnicodeUTF8))
|
||||
@ -158,6 +174,7 @@ class Ui_MainWindow(object):
|
||||
self.treeWidget.topLevelItem(0).setText(0, QtGui.QApplication.translate("MainWindow", "qzd", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.treeWidget.topLevelItem(1).setText(0, QtGui.QApplication.translate("MainWindow", "effefe", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.treeWidget.setSortingEnabled(__sortingEnabled)
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), QtGui.QApplication.translate("MainWindow", "Tab 2", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.menuMenu.setTitle(QtGui.QApplication.translate("MainWindow", "Menu", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.menuSubmenu_2.setTitle(QtGui.QApplication.translate("MainWindow", "Submenu 2", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.pushButton_2.setText(QtGui.QApplication.translate("MainWindow", "PushButton", None, QtGui.QApplication.UnicodeUTF8))
|
||||
|
Loading…
Reference in New Issue
Block a user