Skip to content

Commit

Permalink
ui tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddie committed Oct 27, 2023
1 parent 0d985ed commit 57e5858
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def openCloseRightBox():
self.watch_vars_chart_container.setLayout(self.watch_vars_chart_layout)
self.ui.insights_scroll_area.setWidget(self.watch_vars_chart_container)


self.ui.stats_frame.hide()

# SHOW APP
self.show()
Expand Down
6 changes: 3 additions & 3 deletions main.ui
Original file line number Diff line number Diff line change
Expand Up @@ -3443,7 +3443,7 @@ border-radius: 5px;
<rect>
<x>0</x>
<y>0</y>
<width>397</width>
<width>533</width>
<height>286</height>
</rect>
</property>
Expand Down Expand Up @@ -3696,7 +3696,7 @@ QPushButton:pressed{
<widget class="QFrame" name="extraRightBox">
<property name="minimumSize">
<size>
<width>300</width>
<width>0</width>
<height>0</height>
</size>
</property>
Expand Down Expand Up @@ -4655,7 +4655,7 @@ border-radius: 5px; </string>
<string/>
</property>
<property name="checked">
<bool>true</bool>
<bool>false</bool>
</property>
</widget>
</item>
Expand Down
4 changes: 3 additions & 1 deletion modules/btn_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,12 +644,14 @@ def enable_connection_stats(main_window):
logger = logging.getLogger("PDexLogger")
if main_window.ui.connection_stats_enable.isChecked():
main_window.var_watcher.getConnStats = True
main_window.ui.stats_frame.show()
logger.info("Getting connection stats")
else:
main_window.var_watcher.getConnStats = False
logger.info("Not getting connection stats")
main_window.ui.stats_frame.hide()



def register_button_callbacks(main_window):
logger = logging.getLogger("PDexLogger")
try:
Expand Down
6 changes: 3 additions & 3 deletions modules/ui_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1845,7 +1845,7 @@ def setupUi(self, MainWindow):
self.insights_scroll_area.setWidgetResizable(True)
self.scrollAreaWidgetContents_3 = QWidget()
self.scrollAreaWidgetContents_3.setObjectName(u"scrollAreaWidgetContents_3")
self.scrollAreaWidgetContents_3.setGeometry(QRect(0, 0, 397, 286))
self.scrollAreaWidgetContents_3.setGeometry(QRect(0, 0, 533, 286))
self.insights_scroll_area.setWidget(self.scrollAreaWidgetContents_3)

self.verticalLayout_37.addWidget(self.insights_scroll_area)
Expand Down Expand Up @@ -2001,7 +2001,7 @@ def setupUi(self, MainWindow):

self.extraRightBox = QFrame(self.content)
self.extraRightBox.setObjectName(u"extraRightBox")
self.extraRightBox.setMinimumSize(QSize(300, 0))
self.extraRightBox.setMinimumSize(QSize(0, 0))
self.extraRightBox.setMaximumSize(QSize(0, 16777215))
self.extraRightBox.setFrameShape(QFrame.NoFrame)
self.extraRightBox.setFrameShadow(QFrame.Raised)
Expand Down Expand Up @@ -2519,7 +2519,7 @@ def setupUi(self, MainWindow):
self.connection_stats_enable.setMaximumSize(QSize(84, 999999))
self.connection_stats_enable.setStyleSheet(u"border: 0px solid rgb(52, 59, 72);\n"
"")
self.connection_stats_enable.setChecked(True)
self.connection_stats_enable.setChecked(False)

self.horizontalLayout_21.addWidget(self.connection_stats_enable)

Expand Down

0 comments on commit 57e5858

Please sign in to comment.