- continuing to fix the PyQt6 port
- added an Exception when App.on_canvas_setup() fails
This commit is contained in:
@@ -288,15 +288,15 @@ class ToolLevelling(AppTool, CNCjob):
|
||||
self.ui.al_probe_points_table.resizeRowsToContents()
|
||||
v_header = self.ui.al_probe_points_table.verticalHeader()
|
||||
v_header.hide()
|
||||
self.ui.al_probe_points_table.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
|
||||
self.ui.al_probe_points_table.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
|
||||
|
||||
h_header = self.ui.al_probe_points_table.horizontalHeader()
|
||||
h_header.setMinimumSectionSize(10)
|
||||
h_header.setDefaultSectionSize(70)
|
||||
h_header.setSectionResizeMode(0, QtWidgets.QHeaderView.Fixed)
|
||||
h_header.setSectionResizeMode(0, QtWidgets.QHeaderView.ResizeMode.Fixed)
|
||||
h_header.resizeSection(0, 20)
|
||||
h_header.setSectionResizeMode(1, QtWidgets.QHeaderView.Stretch)
|
||||
h_header.setSectionResizeMode(2, QtWidgets.QHeaderView.ResizeToContents)
|
||||
h_header.setSectionResizeMode(1, QtWidgets.QHeaderView.ResizeMode.Stretch)
|
||||
h_header.setSectionResizeMode(2, QtWidgets.QHeaderView.ResizeMode.ResizeToContents)
|
||||
|
||||
self.ui.al_probe_points_table.setMinimumHeight(self.ui.al_probe_points_table.getHeight())
|
||||
self.ui.al_probe_points_table.setMaximumHeight(self.ui.al_probe_points_table.getHeight())
|
||||
@@ -461,10 +461,10 @@ class ToolLevelling(AppTool, CNCjob):
|
||||
h_header = self.ui.al_probe_points_table.horizontalHeader()
|
||||
h_header.setMinimumSectionSize(10)
|
||||
h_header.setDefaultSectionSize(70)
|
||||
h_header.setSectionResizeMode(0, QtWidgets.QHeaderView.Fixed)
|
||||
h_header.setSectionResizeMode(0, QtWidgets.QHeaderView.ResizeMode.Fixed)
|
||||
h_header.resizeSection(0, 20)
|
||||
h_header.setSectionResizeMode(1, QtWidgets.QHeaderView.Stretch)
|
||||
h_header.setSectionResizeMode(2, QtWidgets.QHeaderView.ResizeToContents)
|
||||
h_header.setSectionResizeMode(1, QtWidgets.QHeaderView.ResizeMode.Stretch)
|
||||
h_header.setSectionResizeMode(2, QtWidgets.QHeaderView.ResizeMode.ResizeToContents)
|
||||
|
||||
self.ui.al_probe_points_table.setMinimumHeight(self.ui.al_probe_points_table.getHeight())
|
||||
self.ui.al_probe_points_table.setMaximumHeight(self.ui.al_probe_points_table.getHeight())
|
||||
|
||||
Reference in New Issue
Block a user