-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pn development #1
Conversation
…omization and configuration read/writes. Could be used to replace the programTime.txt text file that only stores a user defined ProgramTime.
…log to retrieve defined programtime from the cfg file.
…to cover users installing dependencies while within RECNET
…just software to start referring to this config file.
…ve forecast in a new file. Saving and opening files now writes an entry in the config file. On start-up, the config file entry is set to blank. If this entry is blank, the File>Save auto-save function defaults to the SaveAs behavior.
…ab. Need to modify POR entry in the data doctionary to accept a time range (2 ints) rather than just a single int.
…rates with software as is without data dictionary modifications.
…te new entries to the datasetDictionary to prevent duplicates.
… QComboBox. Users report that mouse-scroll is intercepted by the comboboxes when the cursor hovers over them. This commit prevents that.
Resources/application.py
Outdated
|
||
return | ||
|
||
def readConfig(self, configKey, configGroup='DEFAULT'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd just import this function from Resources/Functions/miscFunctions instead of re-writing the whole function here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup. forgot that i pulled that out and put it into miscFunctions. next commit does what you suggest here.
Resources/application.py
Outdated
config.read('Resources/tempFiles/pyforecast.cfg') | ||
return config[configGroup][configKey] | ||
|
||
def writeConfig(self, configKey, configVal, configGroup='DEFAULT'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above. Just import from miscFunctions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks Jon!
Request pull for commits shown below. Main changes: