コード例 #1
0
 def __init__(self, remove_function=None, parent=None):
     self.EA = parent
     WizardWidget.__init__(self, parent=parent)
     if remove_function is None:
         self.ui.btn_remove.hide()
     else:
         self.ui.btn_remove.clicked.connect(remove_function)
コード例 #2
0
 def __init__(self, parent=None, include_lwork=True):
     self.origin_hint = 'Suggested format "FIRST M. LAST"'
     self.include_lwork = include_lwork
     self.schema = 'bdp'
     WizardWidget.__init__(self, parent=parent)
     self.doi_lookup = None
     self.highlighter = Highlighter(self.ui.fgdc_title.document())
コード例 #3
0
    def __init__(self, parent=None):
        # This changes to true when this attribute is being viewed/edited
        self.active = False
        self.ef = 0

        self.nodata = None
        self.nodata_content = (False, None)  # nodata checked, last nodata node

        WizardWidget.__init__(self, parent=parent)

        # an in memory record of all  the contents that were selected
        self._previous_index = -1
        cbo = self.ui.comboBox
        self._domain_content = dict.fromkeys(range(cbo.count()), None)

        self.parent_ui = parent
        self.series = None
        self.ui.nodata_section.hide()
        self.highlighter = Highlighter(self.ui.fgdc_attrdef.document())

        self.nodata_matches = [
            '#N/A', '#N/A N/A', '#NA', '-1.#IND', '-1.#QNAN', '-NaN', '-nan',
            '1.#IND', '1.#QNAN', 'N/A', 'NA', 'NULL', 'NaN', 'n/a', 'nan',
            'null', -9999, '-9999', '', 'Nan', '<< empty cell >>'
        ]
コード例 #4
0
    def __init__(self, thesaurus_label='Thesaurus', keywords_label='Keywords:',
                 line_name='kw', parent=None):
        self.thesaurus_label = thesaurus_label
        self.keywords_label = keywords_label
        self.line_name = line_name

        WizardWidget.__init__(self, parent=parent)
コード例 #5
0
ファイル: citeinfo.py プロジェクト: thareUSGS/fort-pymdwizard
 def __init__(self, parent=None, include_lwork=True):
     self.origin_hint = 'Suggested format "FIRST M. LAST"'
     self.include_lwork = include_lwork
     self.schema = "bdp"
     WizardWidget.__init__(self, parent=parent)
     self.doi_lookup = None
     self.highlighter = Highlighter(self.ui.fgdc_title.document())
     self.ui.fgdc_title.textChanged.connect(self.remove_returns)
     self.ui.fgdc_title.mouseMoveEvent = self.mouse_move
コード例 #6
0
    def __init__(self, parent=None):
        self._previous_index = -1
        self._domain_content = {
            'Range (Numeric data)': None,
            'Enumerated (Categorical Data)': None,
            'Unrepresentable (None of the above)': None,
            'Codeset (Published Categories)': None
        }

        self.parent_ui = parent
        self.series = None
        WizardWidget.__init__(self, parent=parent)
コード例 #7
0
ファイル: attr.py プロジェクト: afreeman-usgs/fort-pymdwizard
    def __init__(self, parent=None):
        # This changes to true when this attribute is being viewed/edited
        self.active = False
        self.ef = 0
        WizardWidget.__init__(self, parent=parent)

        # an in memory record of all  the contents that were selected
        self._previous_index = -1
        cbo = self.ui.comboBox
        self._domain_content = dict.fromkeys(range(cbo.count()), None)

        self.parent_ui = parent
        self.series = None
コード例 #8
0
    def __init__(self,
                 thesaurus_label='Thesaurus',
                 keywords_label='Keywords:',
                 line_name='kw',
                 spellings=True,
                 parent=None):
        self.thesaurus_label = thesaurus_label
        self.keywords_label = keywords_label
        self.line_name = line_name
        self.keywords = None
        self.spellings = spellings

        WizardWidget.__init__(self, parent=parent)
コード例 #9
0
ファイル: Taxonomy.py プロジェクト: ehbaker/fort-pymdwizard
    def __init__(self, parent=None):

        WizardWidget.__init__(self, parent=parent)

        self.selected_items_df = pd.DataFrame(columns=['item', 'tsn'])
        self.selected_model = utils.PandasModel(self.selected_items_df)
        self.ui.table_include.setModel(self.selected_model)

        self.ui.frame_included_species.hide()

        # This dictionary contains copies of each unique taxonomy xml created
        # so that we need not generate them more than once
        self.xml_lookup = {}
コード例 #10
0
    def __init__(
        self,
        thesaurus_label="Thesaurus",
        keywords_label="Keywords:",
        line_name="kw",
        spellings=True,
        parent=None,
    ):
        self.thesaurus_label = thesaurus_label
        self.keywords_label = keywords_label
        self.line_name = line_name
        self.keywords = None
        self.spellings = spellings

        WizardWidget.__init__(self, parent=parent)
コード例 #11
0
ファイル: citeinfo.py プロジェクト: ehbaker/fort-pymdwizard
 def __init__(self, parent=None, include_lwork=True):
     self.include_lwork = include_lwork
     self.schema = 'bdp'
     WizardWidget.__init__(self, parent=parent)
コード例 #12
0
ファイル: attr.py プロジェクト: mhannon-usgs/fort-pymdwizard
 def __init__(self, xml=None, parent=None):
     self.parent_ui = parent
     self.series = None
     WizardWidget.__init__(self, xml=xml, parent=parent)