1401 # holds space delimited list of command args, if any |
1401 # holds space delimited list of command args, if any |
1402 argsStr = None |
1402 argsStr = None |
1403 # flag indicating '--' options was found |
1403 # flag indicating '--' options was found |
1404 ddseen = False |
1404 ddseen = False |
1405 |
1405 |
1406 if Utilities.isWindowsPlatform(): |
1406 argChars = ['-', '/'] if Utilities.isWindowsPlatform() else ['-'] |
1407 argChars = ['-', '/'] |
|
1408 else: |
|
1409 argChars = ['-'] |
|
1410 |
1407 |
1411 for arg in args: |
1408 for arg in args: |
1412 # handle a request to start with last session |
1409 # handle a request to start with last session |
1413 if arg == '--start-file': |
1410 if arg == '--start-file': |
1414 self.__openOnStartup("File") |
1411 self.__openOnStartup("File") |
3744 import sip |
3741 import sip |
3745 sip_version_str = sip.SIP_VERSION_STR |
3742 sip_version_str = sip.SIP_VERSION_STR |
3746 except (ImportError, AttributeError): |
3743 except (ImportError, AttributeError): |
3747 sip_version_str = "sip version not available" |
3744 sip_version_str = "sip version not available" |
3748 |
3745 |
3749 if sys.maxsize > 2**32: |
3746 sizeStr = "64-Bit" if sys.maxsize > 2**32 else "32-Bit" |
3750 sizeStr = "64-Bit" |
|
3751 else: |
|
3752 sizeStr = "32-Bit" |
|
3753 |
3747 |
3754 versionText = self.tr( |
3748 versionText = self.tr( |
3755 """<h2>Version Numbers</h2>""" |
3749 """<h2>Version Numbers</h2>""" |
3756 """<table>""") |
3750 """<table>""") |
3757 versionText += ( |
3751 versionText += ( |
3849 @param attachFile name of a file to put into the body of the |
3843 @param attachFile name of a file to put into the body of the |
3850 email (string) |
3844 email (string) |
3851 @param deleteAttachFile flag indicating to delete the file after |
3845 @param deleteAttachFile flag indicating to delete the file after |
3852 it has been read (boolean) |
3846 it has been read (boolean) |
3853 """ |
3847 """ |
3854 if mode == "feature": |
3848 address = FeatureAddress if mode == "feature" else BugAddress |
3855 address = FeatureAddress |
|
3856 else: |
|
3857 address = BugAddress |
|
3858 subject = "[eric] " |
3849 subject = "[eric] " |
3859 if attachFile is not None: |
3850 if attachFile is not None: |
3860 with open(attachFile, "r", encoding="utf-8") as f: |
3851 with open(attachFile, "r", encoding="utf-8") as f: |
3861 body = f.read() |
3852 body = f.read() |
3862 if deleteAttachFile: |
3853 if deleteAttachFile: |
6481 """ |
6472 """ |
6482 Private slot to check some actions for their enable/disable status. |
6473 Private slot to check some actions for their enable/disable status. |
6483 |
6474 |
6484 @param editor editor window |
6475 @param editor editor window |
6485 """ |
6476 """ |
6486 if editor: |
6477 fn = editor.getFileName() if editor else None |
6487 fn = editor.getFileName() |
6478 |
6488 else: |
|
6489 fn = None |
|
6490 |
|
6491 if fn: |
6479 if fn: |
6492 dbs = e5App().getObject("DebugServer") |
6480 dbs = e5App().getObject("DebugServer") |
6493 for language in dbs.getSupportedLanguages(): |
6481 for language in dbs.getSupportedLanguages(): |
6494 exts = dbs.getExtensions(language) |
6482 exts = dbs.getExtensions(language) |
6495 if fn.endswith(exts): |
6483 if fn.endswith(exts): |