#!/usr/bin/python3 import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import * from main_widget import MainWidget app = QApplication(sys.argv) # set icon for application window_icon = QIcon("./resources/srt.ico") if not window_icon.isNull(): app.setWindowIcon(window_icon) form = MainWidget() form.show() app.exec_()
import sys from PySide2.QtWidgets import ( QApplication, ) from main_widget import MainWidget if __name__ == "__main__": tiny_linter_app = QApplication(sys.argv) main_widget = MainWidget() main_widget.resize(800, 600) main_widget.show() sys.exit(tiny_linter_app.exec_())
import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import * from main_widget import MainWidget app = QApplication(sys.argv) # set icon for application window_icon = QIcon("./resources/srt.ico") if not window_icon.isNull(): app.setWindowIcon(window_icon) form = MainWidget() form.show() app.exec_()