cast splitter settings to int in Canvas.py
This commit is contained in:
parent
2b1e24bf11
commit
028f9d12a2
@ -113,7 +113,7 @@ class Canvas(QtGui.QWidget):
|
||||
|
||||
if not self.sizeApplied:
|
||||
self.sizeApplied = True
|
||||
s = min(self.width(), max(100, min(200, self.width()*0.25)))
|
||||
s = int( min(self.width(), max(100, min(200, self.width()//4))) )
|
||||
s2 = self.width()-s
|
||||
self.ui.splitter.setSizes([s2, s])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user