From: smbaker Date: Tue, 13 Sep 2011 21:49:28 +0000 (-0700) Subject: set maximum width of status messages to prevent main window from getting really wide X-Git-Tag: sface-0.1-19~6 X-Git-Url: http://git.onelab.eu/?p=sface.git;a=commitdiff_plain;h=bb62e92aac67d6a2a3e057e62a52490d0da40ae8 set maximum width of status messages to prevent main window from getting really wide --- diff --git a/sface/sficreate.py b/sface/sficreate.py index 0405e3e..70dd900 100644 --- a/sface/sficreate.py +++ b/sface/sficreate.py @@ -33,6 +33,7 @@ class CreateWindow(QDialog): self.userView = UserView() self.status = QLabel("") + self.status.setMaximumWidth(640) self.buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel) self.buttonBox.addButton("refresh", QDialogButtonBox.ActionRole) diff --git a/sface/sfirenew.py b/sface/sfirenew.py index 8da166e..47ddf2a 100644 --- a/sface/sfirenew.py +++ b/sface/sfirenew.py @@ -104,6 +104,7 @@ class RenewWindow(QDialog): self.duration.setCurrentIndex(0) self.status = QLabel("") + self.status.setMaximumWidth(640) self.buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel) self.buttonBox.button(QDialogButtonBox.Ok).setDefault(True)