Example #1
0
    def doweb(self):
        if self.ui.title.text() == "":
            self.parentwindow.parentwindow.setstatusmsg(
                "Please enter a title for your bug report", "ImportantMessage")
            if hou.isUIAvailable():
                hou.ui.setStatusMessage(
                    "Please enter a title for your bug report.",
                    severity=hou.severityType.Warning)
            return

        submittype = submittypeswitch(self.ui.label_cbox.currentIndex())
        reporturl = '''https://github.com/instance-id/searcher_addon/issues/new?%s%s''' % (
            submittype, self.ui.title.text())

        QtGui.QDesktopServices.openUrl(QtCore.QUrl(reporturl))
        self.parentwindow.parentwindow.close()
Example #2
0
 def openEmail(self, _):
     email = '''mailto:[email protected]'''
     QtGui.QDesktopServices.openUrl(QtCore.QUrl(email))
     self.parentwindow.parentwindow.close()
Example #3
0
 def openGithub(self, _):
     ghurl = '''https://github.com/instance-id/'''
     QtGui.QDesktopServices.openUrl(QtCore.QUrl(ghurl))
     self.parentwindow.parentwindow.close()
Example #4
0
 def openTwitter(self, _):
     twitterurl = '''https://twitter.com/instance_id'''
     QtGui.QDesktopServices.openUrl(QtCore.QUrl(twitterurl))
     self.parentwindow.parentwindow.close()
Example #5
0
 def openWeb(self, _):
     weburl = '''https://instance.id/'''
     QtGui.QDesktopServices.openUrl(QtCore.QUrl(weburl))
     self.parentwindow.parentwindow.close()