Exemple #1
0
 def donate(self):
     url = core.QUrl(
         "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&lc=CY&item_name=codetronic&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG.if:NonHosted",
         core.QUrl.TolerantMode)
     gui.QDesktopServices().openUrl(url)
     msgbox = gui.QMessageBox()
     msgbox.setText(
         "<center>Merci pour votre contribution, si votre navigteur ne s'ouvre pas, vous pouvez le faire depuis la page https://github.com/cedricp/ddt4all</center>"
     )
     msgbox.exec_()
Exemple #2
0
 def donate(self):
     url = core.QUrl(
         "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&lc=CY&item_name=codetronic&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG.if:NonHosted",
         core.QUrl.TolerantMode)
     gui.QDesktopServices().openUrl(url)
     msgbox = gui.QMessageBox()
     msgbox.setText(
         _("<center>Thank you for you contribution, if nothing happens, please go to : https://github.com/cedricp/ddt4all</center>"
           ))
     msgbox.exec_()
Exemple #3
0
 def _open_django_admin(self):
     import subprocess
     subprocess.Popen([
         'python',
         os.path.join(os.path.dirname(os.path.abspath(__file__)), '..',
                      '..', 'manage.py'), 'runserver'
     ],
                      shell=True)
     time.sleep(10)
     desktop_services = QtGui.QDesktopServices()
     desktop_services.openUrl(QtCore.QUrl('http://localhost:8000/admin'))
Exemple #4
0
 def save_report(self):
     self.btnStart.setEnabled(False)
     self.btnReport.setEnabled(False)
     self.btnClose.setEnabled(False)
     save_path = QtGui.QFileDialog() \
         .getSaveFileName(self,
                          u'Сохранить отчет',
                          path.join(forceString(
                              QtGui.QDesktopServices().storageLocation(QtGui.QDesktopServices.DocumentsLocation)
                          ),
                              'report.xls'),
                          u'XLS файл (*.xls)')
     if save_path:
         self.report_worker.set_stats(self.stats, save_path)
         self.report_worker.start()
Exemple #5
0
 def help(self):
     QtGui.QDesktopServices().openUrl(QtCore.QUrl(conf.help_url))
Exemple #6
0
 def __init__(self, mainWindow):
     self.mainW = mainWindow
     self.license = LicenseWidget()
     self.about = AboutWidget()
     self.desktopServices = QtGui.QDesktopServices()
Exemple #7
0
 def handleLinkClicked(self, url):
     QtGui.QDesktopServices().openUrl(url)
Exemple #8
0
 def doUrl(self):
     service = QtGui.QDesktopServices()
     url = QtCore.QUrl(__url__)
     service.openUrl(url)
Exemple #9
0
 def visitHomepage(self):
     QtGui.QDesktopServices().openUrl(QtCore.QUrl(
         """https://github.com/fortharris/Pcode"""))
Exemple #10
0
 def onActionHomepage(self):
     url = QtCore.QUrl('https://foosoft.net/projects/yomichan')
     QtGui.QDesktopServices().openUrl(url)
Exemple #11
0
 def onActionFeedback(self):
     url = QtCore.QUrl('http://foosoft.net/about')
     QtGui.QDesktopServices().openUrl(url)
Exemple #12
0
 def onActionHomepage(self):
     url = QtCore.QUrl('https://github.com/lovac42/YomiObaasan-CCBC')
     QtGui.QDesktopServices().openUrl(url)
 def open_URL(self, URL):
     QtGui.QDesktopServices().openUrl(QtCore.QUrl(URL))
Exemple #14
0
 def onFilesDoubleClick(self, item):
     services = QtGui.QDesktopServices()
     services.openUrl(QtCore.QUrl.fromLocalFile(item.text()))
Exemple #15
0
 def openUrl(self, URL):
     QtGui.QDesktopServices().openUrl(QUrl(URL))
Exemple #16
0
 def onHelpHomepage(self):
     services = QtGui.QDesktopServices()
     services.openUrl(QtCore.QUrl('http://foosoft.net/mangle'))
Exemple #17
0
 def doUrl(self):
     self.setStatus('opening documentation URL in default browser')
     service = QtGui.QDesktopServices()
     url = QtCore.QUrl(PvMail.__url__)
     service.openUrl(url)
Exemple #18
0
 def openFeedbackLink(self):
     QtGui.QDesktopServices().openUrl(QtCore.QUrl(
         """https://twitter.com/PcodeIDE"""))
Exemple #19
0
 def tech_support(self):
     QtGui.QDesktopServices().openUrl(QtCore.QUrl(Settings.get("HELP_URL")))