diff --git a/addFeatureGUI.py b/addFeatureGUI.py index 5692043..87b0097 100644 --- a/addFeatureGUI.py +++ b/addFeatureGUI.py @@ -207,7 +207,7 @@ def configureDialog(self, p_layertype, p_wkbtype, p_Multitype=False, p_Z=False, # Resize grid. Set column's width equal. Resize the section to fill the available space. for i in range(self.twPoints.columnCount()): - self.twPoints.setColumnWidth(i, self.twPoints.width()/self.twPoints.columnCount()) + self.twPoints.setColumnWidth(i, int(self.twPoints.width()/self.twPoints.columnCount())) self.twPoints.horizontalHeader().setSectionResizeMode(i, QHeaderView.Stretch) # Disable OK button. Wait for entering valid coordinates