AdvancedSearchDialog
(parent, root)[source]¶A dialog for advanced searching, notifying ImportDialog when search parameters have
been chosen and entered. Uses the observer design pattern to notify ImportDialog
when the ranges have been changed from an invalid state to valid.
Parameters: |
|
---|
parse_ranges
()[source]¶Command for the search button, upon the user clicking the search button this function will perform a number of regex parsing to ensure all fields contain valid numbers, then sets the observers range dictionary to the valid fields and destroys AdvancedSearchDialog. If any fields are invalid, an error will be displayed and the function will return, keeping the window open and allowing the user to fix their error.