This file contains 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
from PyQt5 import QtCore | |
from PyQt5.QtWidgets import QMainWindow, QApplication, QLabel, QPushButton, QVBoxLayout, QWidget | |
from PyQt5.QtCore import Qt, QObject, QRunnable, pyqtSlot, QThreadPool, QTimer | |
import traceback, sys | |
import datetime | |
# this may be a long sample but you can copy and pase it for test | |
# the different parts of code are commented so it can be clear what it does | |
class WorkerSignals(QObject): |
This file contains 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
# you can copy paste and run this code for test | |
from PyQt5.QtGui import * | |
from PyQt5.QtCore import * | |
from PyQt5.QtWidgets import * | |
import sys | |
class window(QMainWindow): | |
def __init__(self): | |
super(window, self).__init__() | |
listWidget = QListWidget() | |
listWidget.resize(300,120) |