mirror of
https://github.com/Wanderson-Magalhaes/PyOneDark_Qt_Widgets_Modern_GUI.git
synced 2026-02-17 07:53:57 +00:00
11/06/2021
This commit is contained in:
@@ -160,7 +160,7 @@ class Ui_MainPages(object):
|
|||||||
|
|
||||||
self.retranslateUi(MainPages)
|
self.retranslateUi(MainPages)
|
||||||
|
|
||||||
self.pages.setCurrentIndex(1)
|
self.pages.setCurrentIndex(0)
|
||||||
|
|
||||||
|
|
||||||
QMetaObject.connectSlotsByName(MainPages)
|
QMetaObject.connectSlotsByName(MainPages)
|
||||||
|
|||||||
@@ -460,6 +460,14 @@ class SetupMainWindow:
|
|||||||
)
|
)
|
||||||
self.line_edit.setMinimumHeight(30)
|
self.line_edit.setMinimumHeight(30)
|
||||||
|
|
||||||
|
# TOGGLE BUTTON
|
||||||
|
self.toggle_button = PyToggle(
|
||||||
|
width = 50,
|
||||||
|
bg_color = self.themes["app_color"]["dark_two"],
|
||||||
|
circle_color = self.themes["app_color"]["icon_color"],
|
||||||
|
active_color = self.themes["app_color"]["context_color"]
|
||||||
|
)
|
||||||
|
|
||||||
# TABLE WIDGETS
|
# TABLE WIDGETS
|
||||||
self.table_widget = PyTableWidget(
|
self.table_widget = PyTableWidget(
|
||||||
radius = 8,
|
radius = 8,
|
||||||
@@ -521,6 +529,7 @@ class SetupMainWindow:
|
|||||||
self.ui.load_pages.row_3_layout.addWidget(self.icon_button_3)
|
self.ui.load_pages.row_3_layout.addWidget(self.icon_button_3)
|
||||||
self.ui.load_pages.row_3_layout.addWidget(self.push_button_1)
|
self.ui.load_pages.row_3_layout.addWidget(self.push_button_1)
|
||||||
self.ui.load_pages.row_3_layout.addWidget(self.push_button_2)
|
self.ui.load_pages.row_3_layout.addWidget(self.push_button_2)
|
||||||
|
self.ui.load_pages.row_3_layout.addWidget(self.toggle_button)
|
||||||
self.ui.load_pages.row_4_layout.addWidget(self.line_edit)
|
self.ui.load_pages.row_4_layout.addWidget(self.line_edit)
|
||||||
self.ui.load_pages.row_5_layout.addWidget(self.table_widget)
|
self.ui.load_pages.row_5_layout.addWidget(self.table_widget)
|
||||||
|
|
||||||
|
|||||||
2
main.py
2
main.py
@@ -215,7 +215,7 @@ if __name__ == "__main__":
|
|||||||
# APPLICATION
|
# APPLICATION
|
||||||
# ///////////////////////////////////////////////////////////////
|
# ///////////////////////////////////////////////////////////////
|
||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
# app.setWindowIcon(QIcon("icon.ico"))
|
app.setWindowIcon(QIcon("icon.ico"))
|
||||||
window = MainWindow()
|
window = MainWindow()
|
||||||
|
|
||||||
# EXEC APP
|
# EXEC APP
|
||||||
|
|||||||
Reference in New Issue
Block a user