sw: add reset scale button
This commit is contained in:
@ -248,6 +248,7 @@ class MainWindow(QMainWindow):
|
|||||||
self.setup_network_settings()
|
self.setup_network_settings()
|
||||||
|
|
||||||
self.button_start.clicked.connect(self.run_measurement)
|
self.button_start.clicked.connect(self.run_measurement)
|
||||||
|
self.button_graph_autoscale.clicked.connect(self.reset_graph_autoscale)
|
||||||
|
|
||||||
# ping utils
|
# ping utils
|
||||||
|
|
||||||
@ -717,6 +718,10 @@ class MainWindow(QMainWindow):
|
|||||||
|
|
||||||
return reference
|
return reference
|
||||||
|
|
||||||
|
def reset_graph_autoscale(self):
|
||||||
|
self.graph_widget.enableAutoRange(axis="xy", enable=True)
|
||||||
|
self.graph_widget.autoRange()
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
|
|||||||
@ -473,6 +473,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="button_graph_autoscale">
|
||||||
|
<property name="text">
|
||||||
|
<string>Сброс масштаба</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
|
|||||||
Reference in New Issue
Block a user