This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Primitive terminal emulator example made from a PyQt QTextEdit widget.""" | |
| import fcntl, locale, os, pty, struct, sys, termios | |
| import subprocess # nosec | |
| # Quick hack to limit the scope of the PyLint warning disabler | |
| try: | |
| # pylint: disable=no-name-in-module | |
| from PyQt5.QtCore import Qt, QSocketNotifier # type: ignore | |
| from PyQt5.QtGui import QFont, QPalette, QTextCursor # type: ignore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wx | |
| import wx.stc as stc | |
| class XmlSTC(stc.StyledTextCtrl): | |
| def __init__(self, parent): | |
| stc.StyledTextCtrl.__init__(self, parent) | |
| self.SetLexer(stc.STC_LEX_XML) |