def create_buttons(self):
    self.add_new_button = QtGui.QPushButton('Add')
    self.add_new_button.setMinimumWidth(90)
    self.remove_button = QtGui.QPushButton('Remove')
    self.remove_button.setMinimumWidth(90)
    self.save_button = QtGui.QPushButton('Save and Close')
    self.save_button.setMinimumWidth(90)
    self.close_button = QtGui.QPushButton('Cancel')
    self.close_button.setMinimumWidth(90)
    self.main_layout.addWidget(self.add_new_button, 1, 1, 1, 1)
    self.main_layout.addWidget(self.remove_button, 2, 1, 1, 1)
    self.main_layout.addWidget(self.save_button, 4, 0, 1, 1)
    self.main_layout.addWidget(self.close_button, 4, 1, 1, 1)
    spacer = QtGui.QSpacerItem(0, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
    self.main_layout.addItem(spacer, 3, 1, 1, 1)
def create_buttons(self):
    self.add_new_button = QtGui.QPushButton('Add')
    self.add_new_button.setMinimumWidth(90)
    self.remove_button = QtGui.QPushButton('Remove')
    self.remove_button.setMinimumWidth(90)
    self.save_button = QtGui.QPushButton('Save and Close')
    self.save_button.setMinimumWidth(90)
    self.close_button = QtGui.QPushButton('Cancel')
    self.close_button.setMinimumWidth(90)
    self.main_layout.addWidget(self.add_new_button, 1, 1, 1, 1)
    self.main_layout.addWidget(self.remove_button, 2, 1, 1, 1)
    self.main_layout.addWidget(self.save_button, 4, 0, 1, 1)
    self.main_layout.addWidget(self.close_button, 4, 1, 1, 1)
    spacer = QtGui.QSpacerItem(0, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
    self.main_layout.addItem(spacer, 3, 1, 1, 1)