def main(): i = Institution(None) model = PopulationModel(i) m = MasterUndoModel() app = QtGui.QApplication(sys.argv) w = PopulationWidget(None) m.add_command_contributer(w) w.setModel(model) w.show() sys.exit(app.exec_())
def main(): GlobalRoleList.add_role(Role('Baker', 'B', 2)) GlobalRoleList.add_role(Role('Steward', 'S', 9)) GlobalRoleList.add_role(Role('Fisherman', 'F', 7)) m = MasterUndoModel() app = QtGui.QApplication(sys.argv) w = GlobalRolesWidget(None) m.add_command_contributer(w) w.setWindowTitle('roles') w.show() sys.exit(app.exec_())
def main(): m = MasterUndoModel() app = QtGui.QApplication(sys.argv) w = StandardEventTimesWidget(None) m.add_command_contributer(w) w.show() v = QtGui.QUndoView(None) v.setStack(m.undoStack) v.show() sys.exit(app.exec_())
def main(): GlobalRoleList.add_role(Role('Baker', 'B', 2)) GlobalRoleList.add_role(Role('Steward', 'S', 9)) GlobalRoleList.add_role(Role('Fisherman', 'F', 7)) m = MasterUndoModel() app = QtGui.QApplication(sys.argv) w = AppointmentsListWidget(None) am = AppointmentsTableModel(w) e = Events.Event(None) am.setEvent(e) w.setModel(am) m.add_command_contributer(w) w.show() sys.exit(app.exec_())
def main(): GlobalRoleList.add_role(Role('Baker', 'B', 2)) GlobalRoleList.add_role(Role('Singer', 'S', 9)) GlobalRoleList.add_role(Role('Fisherman', 'F', 7)) m = MasterUndoModel() app = QtGui.QApplication(sys.argv) w = VacanciesWidget(None) m.add_command_contributer(w) w.show() v = QtGui.QUndoView(None) v.setStack(m.undoStack) v.show() sys.exit(app.exec_())
def main(): GlobalRoleList.add_role(Role("Baker", "B", 2)) GlobalRoleList.add_role(Role("Singer", "S", 9)) GlobalRoleList.add_role(Role("Fisherman", "F", 7)) m = MasterUndoModel() app = QtGui.QApplication(sys.argv) w = EventTemplateWidget(None) i = Institution.Institution(None) w.institution(i) m.add_command_contributer(w) w.show() v = QtGui.QUndoView(None) v.setStack(m.undoStack) v.show() sys.exit(app.exec_())
def main(): GlobalRoleList.add_role(Role('Baker', 'B', 2)) GlobalRoleList.add_role(Role('Singer', 'S', 9)) GlobalRoleList.add_role(Role('Fisherman', 'F', 7)) m = MasterUndoModel() i = Institution(None) p = PopulationModel(i) app = QtGui.QApplication(sys.argv) w = DurationsWidget(None) w.setPopulationModel(p) w.setInstitution(i) m.add_command_contributer(w) w.show() v = QtGui.QUndoView(None) v.setStack(m.undoStack) v.show() sys.exit(app.exec_())