comparison src/browser/sat_browser/xmlui.py @ 806:cab7bf950fa0

browser_side (xmlui): center the Save/Cancel buttons of parameters dialog
author souliane <souliane@mailoo.org>
date Tue, 15 Dec 2015 18:33:10 +0100
parents f3cd261ea12f
children f8a7a046ff9c
comparison
equal deleted inserted replaced
805:f2a76ee020f6 806:cab7bf950fa0
458 hpanel.add(Button('Cancel', self.onFormCancelled)) 458 hpanel.add(Button('Cancel', self.onFormCancelled))
459 self.add(hpanel) 459 self.add(hpanel)
460 elif self.type == 'param': 460 elif self.type == 'param':
461 assert(isinstance(self.children[0][0], TabPanel)) 461 assert(isinstance(self.children[0][0], TabPanel))
462 hpanel = HorizontalPanel() 462 hpanel = HorizontalPanel()
463 hpanel.setStyleName('marginAuto')
463 hpanel.add(Button('Save', self.onSaveParams)) 464 hpanel.add(Button('Save', self.onSaveParams))
464 hpanel.add(Button('Cancel', lambda ignore: self._xmluiClose())) 465 hpanel.add(Button('Cancel', lambda ignore: self._xmluiClose()))
465 self.add(hpanel) 466 self.add(hpanel)
466 467
467 def show(self): 468 def show(self):