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()
def openEmail(self, _): email = '''mailto:[email protected]''' QtGui.QDesktopServices.openUrl(QtCore.QUrl(email)) self.parentwindow.parentwindow.close()
def openGithub(self, _): ghurl = '''https://github.com/instance-id/''' QtGui.QDesktopServices.openUrl(QtCore.QUrl(ghurl)) self.parentwindow.parentwindow.close()
def openTwitter(self, _): twitterurl = '''https://twitter.com/instance_id''' QtGui.QDesktopServices.openUrl(QtCore.QUrl(twitterurl)) self.parentwindow.parentwindow.close()
def openWeb(self, _): weburl = '''https://instance.id/''' QtGui.QDesktopServices.openUrl(QtCore.QUrl(weburl)) self.parentwindow.parentwindow.close()