def build_ui(self): self.ui = self.ui_class() self.ui.setupUi(self) self.setup_dragdrop(self) self.ptcontac = ContactInfoPointOfContact(parent=self) self.taxonomy = Taxonomy(parent=self) self.keywords = Keywords(parent=self) self.accconst = Accconst(parent=self) self.useconst = Useconst(parent=self) self.status = Status(parent=self) self.timeperd = Timeperd(parent=self) self.citation = Citeinfo(parent=self) self.citation.ui.btn_import_doi.hide() self.datacredit = Datacred(parent=self) self.descript = Descript(parent=self) self.purpose = Purpose(parent=self) self.supplinf = SupplInf(parent=self) self.native = Native(parent=self) self.ui.fgdc_citation.layout().addWidget(self.citation) #bottom to top in layout time_hbox = QHBoxLayout() time_hbox.addWidget(self.status) time_hbox.addWidget(self.timeperd) self.ui.two_column_left.layout().insertWidget(0, self.native) self.ui.two_column_left.layout().insertLayout(0, time_hbox) self.ui.two_column_left.layout().insertWidget(0, self.datacredit) self.ui.two_column_left.layout().insertWidget(0, self.taxonomy) self.ui.two_column_left.layout().insertWidget(0, self.ptcontac) self.ui.two_column_left.layout().insertWidget(0, self.useconst) self.ui.two_column_left.layout().insertWidget(0, self.accconst) self.ui.two_column_right.layout().insertWidget(0, self.supplinf) self.ui.two_column_right.layout().insertWidget(0, self.keywords) self.ui.two_column_right.layout().insertWidget(0, self.purpose) self.ui.two_column_right.layout().insertWidget(0, self.descript) self.crossref_list = Crossref_list() self.ui.help_crossref.layout().addWidget(self.crossref_list)
def build_ui(self): self.ui = self.ui_class() self.ui.setupUi(self) self.setup_dragdrop(self) self.ptcontac = ContactInfoPointOfContact(parent=self) self.taxonomy = Taxonomy(parent=self) self.keywords = Keywords(parent=self) self.accconst = AccessConstraints(parent=self) self.useconst = UseConstraints(parent=self) self.status = Status(parent=self) self.timeperd = Timeperd(parent=self) self.citation = Citation(parent=self) self.datacredit = DataCredit(parent=self) self.abstract = Abstract(parent=self) self.purpose = Purpose(parent=self) self.supplinf = SupplInf(parent=self) self.ui.fgdc_citation.layout().addWidget(self.citation) #bottom to top in layout time_hbox = QHBoxLayout() time_hbox.addWidget(self.status) time_hbox.addWidget(self.timeperd) self.ui.two_column_left.layout().insertLayout(0, time_hbox) self.ui.two_column_left.layout().insertWidget(0, self.datacredit) self.ui.two_column_left.layout().insertWidget(0, self.taxonomy) self.ui.two_column_left.layout().insertWidget(0, self.ptcontac) self.ui.two_column_left.layout().insertWidget(0, self.useconst) self.ui.two_column_left.layout().insertWidget(0, self.accconst) self.ui.two_column_right.layout().insertWidget(0, self.supplinf) self.ui.two_column_right.layout().insertWidget(0, self.keywords) self.ui.two_column_right.layout().insertWidget(0, self.purpose) self.ui.two_column_right.layout().insertWidget(0, self.abstract)