From c6e223c861ba70c2695598b2c998fc0edc48f018 Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 12 Nov 2010 15:22:13 +0000 Subject: [PATCH] Hardcoded initial geometry: 200, 200, 800, 600 git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4553 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BWizard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wizard/BWizard.py b/wizard/BWizard.py index cd81960e..b2bec3ff 100644 --- a/wizard/BWizard.py +++ b/wizard/BWizard.py @@ -50,7 +50,8 @@ class BWizard(QWizard): def __init__(self, page_list): self._current = None QWizard.__init__(self) - geometry = QApplication.instance().settings.value("geometry", None) + # Hardcoded default position (to avoid (0,0) origin) + geometry = QApplication.instance().settings.value("geometry", QVariant(QRect(QPoint(200, 200), QSize(800, 600)))) if geometry: geometry = geometry.toRect() self.setGeometry(geometry) -- 2.25.1