Beispiel #1
0
    def set_buttons(self):
        '''Adds a submit and get taxonomy buttons to the layout'''

        fun = partial(webbrowser.open, TAXONOMY)
        findtaxa = widgets.ClickButton("Find Taxonomy", fun)
        self.layout.addWidget(findtaxa, 5, 0, 1, 5)

        submit = widgets.ClickButton("Submit", self.submit)
        self.layout.addWidget(submit, 5, 5, 1, 5)
Beispiel #2
0
    def __set_ioevents(self):
        '''Adds new/save initializers for the database'''

        layout = self.add_layout(QtGui.QHBoxLayout)

        self.newbutton = widgets.ClickButton("New Database", self.new)
        layout.addWidget(self.newbutton)

        self.saveasbutton = widgets.ClickButton("Save As", self.saveas)
        layout.addWidget(self.saveasbutton)
    def profile(self):
        '''Defines the current modification profiles for saving purposes'''

        hlayout = self.add_layout(QtGui.QHBoxLayout)

        load = widgets.ClickButton("Load Mods", self.io.load)
        hlayout.addWidget(load)

        save = widgets.ClickButton("Save Mods", self.io.save)
        hlayout.addWidget(save)
    def set_savebar(self):
        '''Adds a return/save bar to the layout'''

        layout = QtGui.QHBoxLayout()
        self.layout.addLayout(layout)

        done_editing = widgets.ClickButton("Done Editing", self.close)
        layout.addWidget(done_editing)

        save = widgets.ClickButton("Save", self.save)
        layout.addWidget(save)
Beispiel #5
0
    def __set_addbuttons(self):
        '''Adds buttons to the current widget'''

        layout = self.add_layout(QtGui.QHBoxLayout)

        self.addfasta = widgets.ClickButton("Add Fasta", self.add_from_fasta)
        layout.addWidget(self.addfasta)

        self.addxml = widgets.ClickButton("Add UniProt XML", self.add_from_xml)
        layout.addWidget(self.addxml)

        server = widgets.ClickButton("Add from Server", self.download.show)
        layout.addWidget(server)
Beispiel #6
0
    def set_information(self):
        '''Adds a license and about dialog to the splash menu'''

        layout = QtGui.QHBoxLayout()

        layout.addStretch(1)
        about = widgets.ClickButton("About", self.aboutdialog.show)
        layout.addWidget(about)

        layout.addStretch(1)
        license = widgets.ClickButton("License", self.licensedialog.show)
        layout.addWidget(license)
        layout.addStretch(1)

        self.layout.addLayout(layout)
Beispiel #7
0
    def _setup_run(self):
        '''Setup click button to execute running thread'''

        layout = self.add_layout(QtGui.QHBoxLayout)
        slot = partial(self.launch, running.RunDiscoverer, self.quantitative)
        run = widgets.ClickButton("Run", slot)
        layout.addWidget(run)
Beispiel #8
0
    def set_widgets(self):
        '''Sets the target widgets for the layout'''

        self.layout.addWidget(widgets.Divider(self))

        done = widgets.ClickButton("Done Editing", self.parent().close)
        self.layout.addWidget(done)
    def set_widgets(self, *args):
        '''Add the child widgets to the current layout'''

        self.table = ReportTable(self, *args)
        self.layout.addWidget(self.table)

        self.closebutton = widgets.ClickButton("Close", self.close)
        self.layout.addWidget(self.closebutton)
    def set_togglebar(self):
        '''Adds paired QPushbuttons to toggle the current display'''

        layout = QtGui.QHBoxLayout()
        self.layout.addLayout(layout)

        for title, attrname in WIDGETS:
            slot = partial(self.clicked, attrname)
            button = widgets.ClickButton(title, slot, checkable=True)

            layout.addWidget(button)
            setattr(self, attrname, button)