Commit 8d6eddef authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

SubWindow: Fix window size.

Showing with 6 additions and 0 deletions
+6 -0
...@@ -25,6 +25,12 @@ class ASubWindow(QDialog): ...@@ -25,6 +25,12 @@ class ASubWindow(QDialog):
self.name = name self.name = name
self.parent = parent self.parent = parent
self.parent.sub_win_add(name, self) self.parent.sub_win_add(name, self)
self.fixed_size()
def fixed_size(self):
width = self.frameGeometry().width()
height = self.frameGeometry().height()
self.setFixedSize(width, height)
def closeEvent(self, event): def closeEvent(self, event):
if not self.parent is None: if not self.parent is None:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment