module: main_window

Main code runs the GUI.

class Assign_GUP.main_window.AGUP_MainWindow[source]

Bases: PyQt4.QtGui.QMainWindow

Creates a Qt GUI for the main window

adjustMainWindowTitle()[source]

mark if main window is dirty

indicate in main window title when there are unsaved modifications (i.e., when self.cannotProceed() is True)

cannotProceed()[source]

advise if the application has unsaved changes and should not do the proposed action

closeEvent(event)[source]

called when user clicks the big [X] to quit

closeSubwindows()[source]

close all other windows created by this code

confirmAbandonChangesNotOk()[source]

Ask user to save changes before exit or opening another project.

Return True if application should NOT exit.

confirmEditTopics()[source]

confirm before proceeding

doAgupInfo(*args, **kw)[source]

describe this application and where to get more info

doAnalysis_gridReport()[source]

show a table with dotProducts for each reviewer against each proposal and assignments

doAssignmentsReport()[source]

show a read-only text page with assignments for each proposal

doAutomatedAssignment()[source]

make automated assignments of reviewers to proposals

doClose(*args, **kw)[source]

called when user chooses exit (or quit), or from closeEvent()

doEditEmailTemplate()[source]

edit the template to send emails, include editor for keyword substitutions

doEditProposals()[source]

edit the list of Proposals

doEditReviewers()[source]

edit the list of Reviewers

doEditTopics()[source]

Create Window to edit list of Topics

doImportProposals()[source]

import the proposal file as downloaded from the APS web site

doImportReviewers()[source]

copy the list of Reviewers into this project from another PRP Project file

doImportTopics()[source]

copy the list of Topics from another PRP file into this project

doLettersReport()[source]

prepare the email form letters to each reviewer with their assignments

doNewPrpFile()[source]

clear the data in self.agup

doOpenPrpFile()[source]

open an existing PRP file

doRecalc()[source]
doResetDefaultSettings()[source]

user requested to reset the settings to their default values

Note: does not write to the rcfile

doSave()[source]

save the self.agup data to the known project file name

doSaveAs()[source]

save the self.agup data to the data file name selected from a dialog box

You may choose any file name and extension that you prefer. It is strongly suggested you choose the default file extension, to identify AGUP PRP Project files more easily on disk. Multiple projects files, perhaps for different review cycles, can be saved in the same directory. Or you can save each project file in a different directory as you choose.

By default, the file extension will be .agup, indicating that this is an AGUP PRP Project file. The extensions .prp or .xml may be used as alternatives. Each of these describes a file with exactly the same file format, an XML document.

doSummaryReport()[source]

this report is helpful to balance proposal assignments

show a read-only text page with how many primary and secondary proposals assigned to each reviewer

doUnassignProposals()[source]

Remove ALL assignments of reviewers to proposals

getOpenFileName(*args, **items)[source]

convenience wrapper for Qt open file dialog

getReviewCycleText()[source]
importProposals(filename)[source]

read a proposals XML file and set the model accordingly

importReviewers(filename)[source]

read Reviewers from a PRP Project file and set the model accordingly

importTopics(filename)[source]

read Topics from an AGUP PRP Project file and set the model accordingly

onAssignmentsChanged()[source]

called when a reviewer assignment checkbox has been changed

onTemplateChanged()[source]
onTopicValuesChanged(*args, **kw)[source]

called when a proposal or reviewer topic value has been changed

openPrpFile(filename)[source]

choose the XML file with data for this PRP review

requestConfirmation(message, informative_text, buttons=None, default_button=None)[source]

request confirmation from the user about something

restoreWindowGeometry()[source]

put the window back where it was

saveWindowGeometry()[source]

remember where the window was

setIndicators()[source]

show the numbers of topics, reviewers, and proposals, also the cycle

setNumProposalsWidget(number)[source]
setNumReviewersWidget(number)[source]
setNumTopicsWidget(number)[source]
setPrpFileText(text)[source]
setRcFileText(text)[source]
setReviewCycleText(text)[source]
Assign_GUP.main_window.main()[source]

start the program

Assign_GUP.main_window.process_command_line()[source]

support command-line options such as `--help` and `--version`