def creat_layout(self):
    self.main_layout = QtGui.QGridLayout()
    self.main_layout.setContentsMargins(9, 9, 9, 9)
    self.main_layout.setColumnStretch(0, 1)
    self.setLayout(self.main_layout)
def creat_layout(self):
    self.main_layout = QtGui.QGridLayout()
    self.main_layout.setContentsMargins(9, 9, 9, 9)
    self.main_layout.setColumnStretch(0, 1)
    self.setLayout(self.main_layout)