X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=sface%2Fscreens%2Fconfigscreen.py;h=bed2ce7fdeb2e0968b0dcd4de7442d2504fe89f5;hp=077ee1b7ec870a82f68f14ecb9c52cb31a2196ea;hb=4d4d8e5fd0711655ac0906d880857ff9d9d3bd16;hpb=225f44c6dd0ced8e880a5a106f0563d390af54ee diff --git a/sface/screens/configscreen.py b/sface/screens/configscreen.py index 077ee1b..bed2ce7 100644 --- a/sface/screens/configscreen.py +++ b/sface/screens/configscreen.py @@ -25,13 +25,16 @@ class ConfigWidget(QWidget): setattr(self,field,edit) layout.addWidget (edit) + hlayout = QHBoxLayout() + hlayout.addStretch() for (action,label) in [('apply','Apply'), ('save','Apply && Save')]: button=QPushButton(label, self) button.setSizePolicy(QSizePolicy.Maximum, QSizePolicy.Maximum) - layout.addWidget(button, 0, Qt.AlignRight) - layout.addStretch() + hlayout.addWidget(button, 0, Qt.AlignRight) + hlayout.addSpacing(10) self.connect(button, SIGNAL('clicked()'), getattr(self,action)) + layout.addLayout(hlayout) self.setLayout(layout)