app = QtWidgets.QApplication(sys.argv)
myapp = Interface()
myapp.show()
sys.exit(app.exec_())
app = QtWidgets.QApplication(sys.argv)
QtGui.QFontDatabase.addApplicationFont(fr'путь к нашему шрифту')
myapp = Interface()
myapp.show()
sys.exit(app.exec_())
import sys
from PyQt5 import QtCore, QtGui
from PyQt5.QtWidgets import QApplication, QMainWindow
class Window(QMainWindow):
resized = QtCore.pyqtSignal() # 1
def __init__(self):
super(Window, self).__init__()
self.resized.connect(self.someFunction) # 2
def resizeEvent(self, event):
self.resized.emit()
return super(Window, self).resizeEvent(event)
def someFunction(self):
print("someFunction")
if __name__ == '__main__':
app = QApplication(sys.argv)
window = Window()
window.setGeometry(300, 100, 600, 600)
window.show()
sys.exit(app.exec_())
"editor.semanticTokenColorCustomizations": {
"enabled": false
},
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"name": "variable",
"scope": ["variable.other.readwrite"],
"settings": {
"foreground": "#cc12bc"
}
}
]
}
{
"key": "f4",
"command": "editor.action.inspectTMScopes"
}
Bracket pair colorization can be disabled by setting
"editor.bracketPairColorization.enabled"
tofalse
.
Bracket pair colorization can also be disabled just for specific languages:
"[typescript]": { "editor.bracketPairColorization.enabled": false, },