Changeset 1164:92e6925b39b8 for src/mlx/gui
- Timestamp:
- 06/05/24 18:56:35 (6 months ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/gui.py
r1163 r1164 61 61 ("Zsebényi-Loksa", "Gergely", "test") ] 62 62 63 _maxInlineDebugLogLines = 200 64 63 65 def __init__(self, programDirectory, config): 64 66 """Construct the GUI.""" … … 1769 1771 description += str(formatFlightLogLine(timestampString, text)) 1770 1772 1773 buffer = self._debugLogView.get_buffer() 1774 debugLogTooLong = buffer.get_line_count()>GUI._maxInlineDebugLogLines 1775 1771 1776 description += "\n\n" + ("=" * 40) 1772 description += "\n\nThe contents of the debug log:\n\n" 1773 1774 buffer = self._debugLogView.get_buffer() 1775 description += buffer.get_text(buffer.get_start_iter(), 1776 buffer.get_end_iter(), True) 1777 description += "\n\nThe contents of the debug log%s:\n\n" % \ 1778 (" (truncated)" if debugLogTooLong else "") 1779 1780 debugLog = buffer.get_text(buffer.get_start_iter(), 1781 buffer.get_end_iter(), True) 1782 if debugLogTooLong: 1783 description += buffer.get_text(buffer.get_start_iter(), 1784 buffer.get_iter_at_line(GUI._maxInlineDebugLogLines), 1785 True) 1786 else: 1787 description += debugLog 1788 debugLog = None 1777 1789 1778 1790 self.beginBusy(xstr("sendBugReport_busy")) 1779 1791 self._sendBugReportCallback = callback 1780 1792 self.webHandler.sendBugReport(self._bugReportSentCallback, 1781 summary, description, email) 1793 summary, description, email, 1794 debugLog = debugLog) 1782 1795 1783 1796 def _cefInitialized(self):
Note:
See TracChangeset
for help on using the changeset viewer.